Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
fix auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
z64rankaisija committed Aug 5, 2023
1 parent e27fab7 commit bbadfcc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions project/tools/info.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@
new = [ "z64rom.exe", "tools/lang_en.toml", "tools/info.cfg", "tools/novl.exe", "tools/seqas.exe", "tools/z64convert.exe", "tools/z64upgrade.exe" ]
rem = [ ]

[1.5.9]
new = [ "z64rom.exe", "tools/lang_en.toml", "tools/novl.exe", "tools/seqas.exe", "tools/z64upgrade.exe" ]
rem = [ ]

2 changes: 1 addition & 1 deletion src/tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void Tools_CheckUpdateImpl() {
memcpy(buffer, tag, sz);

sscanf(buffer, "%d.%d.%d", &vnum[0], &vnum[1], &vnum[2]);
sscanf(gToolName, "" PRNT_BLUE "z64rom " PRNT_GRAY "%d.%d.%d", &cnum[0], &cnum[1], &cnum[2]);
sscanf(gToolName, "" PRNT_CYAN "z64rom " PRNT_GRAY "%d.%d.%d", &cnum[0], &cnum[1], &cnum[2]);

newVer = vnum[0] * 1000 + vnum[1] * 100 + vnum[2];
curVer = cnum[0] * 1000 + cnum[1] * 100 + cnum[2];
Expand Down
2 changes: 1 addition & 1 deletion src/z64rom.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/*============================================================================*/

const char* gToolName = PRNT_CYAN "z64rom " PRNT_GRAY "1.5.8";
const char* gToolName = PRNT_CYAN "z64rom " PRNT_GRAY "1.5.9";
char gProjectConfig[32] = "z64project.toml";
StateZ g64 = {
.buildID = ROM_DEV,
Expand Down

0 comments on commit bbadfcc

Please sign in to comment.