Skip to content

Commit

Permalink
Remove unnecessary "tags" scan. Not all entries include this section.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpaterakis committed Sep 3, 2023
1 parent 370601b commit d58f100
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sgdboop.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,7 @@ struct nonSteamApp* getNonSteamApps(int includeMods) {
unsigned char* exeEndChar = strstr(exeStartChar, "\x03");

unsigned char* appidPtr = strstr_i(parsingChar, "\002appid");
unsigned char* tagsPtr = strstr(appidPtr, "\x03tags\x03");
unsigned char* appBlockEndPtr = strstr(tagsPtr, "\x08") + 1; // gcc fucks with optimization on strstr for 2 consecutive hex values. DON'T EDIT THIS.
unsigned char* appBlockEndPtr = strstr(parsingChar, "\x08") + 1; // gcc fucks with optimization on strstr for 2 consecutive hex values. DON'T EDIT THIS.
while (*appBlockEndPtr != 0x03 && *appBlockEndPtr != 0x00) {
appBlockEndPtr = strstr(appBlockEndPtr, "\x08") + 1;
}
Expand Down

0 comments on commit d58f100

Please sign in to comment.