mirror of
https://github.com/wiiu-env/EnvironmentLoader.git
synced 2024-11-27 08:14:14 +01:00
Display current version of EnvironmentLoader in the menu
This commit is contained in:
parent
7dbd371d5a
commit
10337d5fba
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -18,6 +18,13 @@ jobs:
|
|||||||
needs: clang-format
|
needs: clang-format
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: create version.h
|
||||||
|
run: |
|
||||||
|
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
|
cat <<EOF > ./source/version.h
|
||||||
|
#pragma once
|
||||||
|
#define ENVIRONMENT_LOADER_VERSION_EXTRA " (nightly-$git_hash)"
|
||||||
|
EOF
|
||||||
- name: build binary
|
- name: build binary
|
||||||
run: |
|
run: |
|
||||||
docker build . -t builder
|
docker build . -t builder
|
||||||
|
7
.github/workflows/pr.yml
vendored
7
.github/workflows/pr.yml
vendored
@ -26,6 +26,13 @@ jobs:
|
|||||||
needs: clang-format
|
needs: clang-format
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: create version.h
|
||||||
|
run: |
|
||||||
|
git_hash=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}")
|
||||||
|
cat <<EOF > ./source/version.h
|
||||||
|
#pragma once
|
||||||
|
#define ENVIRONMENT_LOADER_VERSION_EXTRA " (nightly-$git_hash)"
|
||||||
|
EOF
|
||||||
- name: build binary
|
- name: build binary
|
||||||
run: |
|
run: |
|
||||||
docker build . -t builder
|
docker build . -t builder
|
||||||
|
@ -32,6 +32,9 @@
|
|||||||
#include "utils/DrawUtils.h"
|
#include "utils/DrawUtils.h"
|
||||||
#include "utils/InputUtils.h"
|
#include "utils/InputUtils.h"
|
||||||
#include "utils/PairUtils.h"
|
#include "utils/PairUtils.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
|
#define ENVIRONMENT_LOADER_VERSION "v0.1.2"
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define MEMORY_REGION_START 0x00A00000
|
#define MEMORY_REGION_START 0x00A00000
|
||||||
@ -350,6 +353,8 @@ std::string EnvironmentSelectionScreen(const std::map<std::string, std::string>
|
|||||||
DrawUtils::setFontSize(24);
|
DrawUtils::setFontSize(24);
|
||||||
DrawUtils::print(16, 6 + 24, "Environment Loader");
|
DrawUtils::print(16, 6 + 24, "Environment Loader");
|
||||||
DrawUtils::drawRectFilled(8, 8 + 24 + 4, SCREEN_WIDTH - 8 * 2, 3, COLOR_WHITE);
|
DrawUtils::drawRectFilled(8, 8 + 24 + 4, SCREEN_WIDTH - 8 * 2, 3, COLOR_WHITE);
|
||||||
|
DrawUtils::setFontSize(16);
|
||||||
|
DrawUtils::print(SCREEN_WIDTH - 16, 6 + 24, ENVIRONMENT_LOADER_VERSION ENVIRONMENT_LOADER_VERSION_EXTRA, true);
|
||||||
|
|
||||||
// draw bottom bar
|
// draw bottom bar
|
||||||
DrawUtils::drawRectFilled(8, SCREEN_HEIGHT - 24 - 8 - 4, SCREEN_WIDTH - 8 * 2, 3, COLOR_WHITE);
|
DrawUtils::drawRectFilled(8, SCREEN_HEIGHT - 24 - 8 - 4, SCREEN_WIDTH - 8 * 2, 3, COLOR_WHITE);
|
||||||
|
2
source/version.h
Normal file
2
source/version.h
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#pragma once
|
||||||
|
#define ENVIRONMENT_LOADER_VERSION_EXTRA ""
|
Loading…
Reference in New Issue
Block a user