Skip to content

Commit

Permalink
Shows expert roms in the GS
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichroteph committed Jan 6, 2024
1 parent 8ae761f commit 1e440e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/system/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ char *history_getRecentPath(char *rom_path)
strcpy(jsonContent, line);
sscanf(strstr(jsonContent, "\"type\":") + 7, "%d", &type);

if (type != 5) {
if ((type != 5)&&(type != 17)) {
free(jsonContent);
continue;
}
Expand Down Expand Up @@ -317,7 +317,7 @@ void resumeGame(int n)

sscanf(strstr(jsonContent, "\"type\":") + 7, "%d", &type);

if (type != 5)
if ((type != 5)&&(type != 17))
continue;

const char *labelStart = strstr(jsonContent, "\"label\":\"");
Expand Down
2 changes: 1 addition & 1 deletion src/gameSwitcher/gameSwitcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void readHistory()

sscanf(strstr(jsonContent, "\"type\":") + 7, "%d", &type);

if (type != 5)
if ((type != 5)&&(type != 17))
continue;

print_debug("type 5");
Expand Down

0 comments on commit 1e440e4

Please sign in to comment.