Skip to content

Commit fdffadd

Browse files
committed
launcher: patinfo: handle nohistory argument
1 parent 4a05e14 commit fdffadd

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

launcher/src/handler_patinfo.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ int handlePATINFO(int argc, char *argv[]) {
1515
return res;
1616

1717
char *titleID = NULL;
18-
LoadOptions *lopts = parsePATINFO(argc, argv, &titleID);
18+
int disableHistory = 0;
19+
LoadOptions *lopts = parsePATINFO(argc, argv, &titleID, &disableHistory);
1920
if (!lopts)
2021
return -ENOENT;
2122

@@ -30,7 +31,11 @@ int handlePATINFO(int argc, char *argv[]) {
3031
}
3132

3233
if (titleID) {
33-
updateLaunchHistory(titleID, 1);
34+
if (disableHistory)
35+
gsDisplayGameID(titleID);
36+
else
37+
updateLaunchHistory(titleID, (settings.flags & FLAG_APP_GAMEID));
38+
3439
free(titleID);
3540
}
3641

0 commit comments

Comments
 (0)