Skip to content

Commit

Permalink
Update cheats.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Sep 22, 2023
1 parent 98c60fc commit e4d693f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/cheats.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void check_game_appdb(list_t* list)
LOG("Found game: %s %s", item->title_id, item->version);
item->flags |= CHEAT_FLAG_OWNER;
}
if (startsWith(item->version, "mask") || startsWith(item->version, "all"))
if (!strncmp(item->version, "mask", 4) || !strncmp(item->version, "all", 3))
{
char* query = sqlite3_mprintf("SELECT A.titleId, A.val, B.val FROM tbl_appinfo AS A INNER JOIN tbl_appinfo AS B"
" WHERE A.key = 'APP_VER' AND B.key = 'VERSION' AND A.titleId = %Q AND B.titleId = %Q",
Expand Down

0 comments on commit e4d693f

Please sign in to comment.