From e4d693f5ac66ac8434bf5946dc8059272a0ee602 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Fri, 22 Sep 2023 11:24:57 -0300 Subject: [PATCH] Update cheats.c --- source/cheats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/cheats.c b/source/cheats.c index 3242f3e..199f781 100644 --- a/source/cheats.c +++ b/source/cheats.c @@ -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",