Skip to content

Commit

Permalink
Merge pull request #38 from fhoedemakers/development
Browse files Browse the repository at this point in the history
Update program version and display in menu
  • Loading branch information
fhoedemakers committed Apr 6, 2024
2 parents 70b71d1 + 292935a commit d128192
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/BuildAndRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ jobs:
echo "The string starts with 'refs/tags/'."
tag="${input_string#$prefix}"
echo "Tag is ${tag}"
sed -i "s/^[[:space:]]*pico_set_program_version(.*/pico_set_program_version(${{ env.APP_NAME }} \"$tag\")/" CMakeLists.txt
sed -i "s/^[[:space:]]*pico_set_program_version(.*/pico_set_program_version(${{ env.APP_NAME }} \"$tag\")/" CMakeLists.txt
sed -i "s/VX.X/$tag/" menu.h
else
echo "The string does not start with 'refs/tags/'."
fi
grep "pico_set_program_version" CMakeLists.txt
grep SWVERSION menu.h
- name: Install Pico SDk
run: |
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ Binaries are at the end of this page.

# Release notes

## v0.11

Features:

- Display program version in lower right corner of the menu

Fixes:

- none

## v0.10

Features:
Expand Down
1 change: 1 addition & 0 deletions menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ void displayRoms(Frens::RomLister romlister, int startIndex)
ClearScreen(screenBuffer, bgcolor);
putText(1, 0, "Choose a rom to play:", fgcolor, bgcolor);
putText(1, SCREEN_ROWS - 1, "A: Select, B: Back", fgcolor, bgcolor);
putText(SCREEN_COLS - strlen(SWVERSION), SCREEN_ROWS - 1,SWVERSION, fgcolor, bgcolor);
for (auto index = startIndex; index < romlister.Count(); index++)
{
if (y <= ENDROW)
Expand Down
1 change: 1 addition & 0 deletions menu.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef ROMSELECT
#define ROMSELECT
#define ROMINFOFILE "/currentloadedrom.txt"
#define SWVERSION "VX.X"
void RomSelect_SetLineBuffer(WORD *p, WORD size);
void menu(uintptr_t NES_FILE_ADDR, char *errorMessage, bool isFatalError);
char getcharslicefrom8x8font(char c, int rowInChar);
Expand Down

0 comments on commit d128192

Please sign in to comment.