diff --git a/src/config.c b/src/config.c index e79d2d5..23ddbaf 100644 --- a/src/config.c +++ b/src/config.c @@ -223,7 +223,7 @@ static vg_io_status_t vg_config_parse_line(const char line[]) { if (ret.code != IO_OK) return ret; - if (vg_main_is_game(titleid, self, nid)) { + if (vg_main_is_game(titleid, self, nid, false)) { g_config_section = CONFIG_SECTION_GAME; return ret; } diff --git a/src/main.c b/src/main.c index fb3de34..d492959 100644 --- a/src/main.c +++ b/src/main.c @@ -171,7 +171,7 @@ static int sceDisplaySetFrameBuf_patched(const SceDisplayFrameBuf *pParam, int s return TAI_CONTINUE(int, g_main.osd_hook_ref, pParam, sync); } -bool vg_main_is_game(const char titleid[], const char self[], uint32_t nid) { +bool vg_main_is_game(const char titleid[], const char self[], uint32_t nid, bool update_support) { vg_game_support_t supp = GAME_UNSUPPORTED; if (!strncasecmp(titleid, TITLEID_ANY, TITLEID_LEN) || @@ -188,7 +188,7 @@ bool vg_main_is_game(const char titleid[], const char self[], uint32_t nid) { } // Update global support - if (supp > g_main.support) + if (update_support && supp > g_main.support) g_main.support = supp; return supp == GAME_SUPPORTED; diff --git a/src/main.h b/src/main.h index 6b1528a..a394542 100644 --- a/src/main.h +++ b/src/main.h @@ -11,7 +11,7 @@ #define OSD_MSG_IOPLUS_HINT "Do you have ioPlus installed?" #define OSD_MSG_GAME_WRONG_VERSION "Your game version is not supported :(" -#define VG_VERSION "v5.0.1" +#define VG_VERSION "v5.0.2" #define VG_FOLDER "ux0:data/VitaGrafix/" #define STRING_BUFFER_SIZE 1024 @@ -75,6 +75,6 @@ typedef struct { extern vg_main_t g_main; -bool vg_main_is_game(const char titleid[], const char self[], uint32_t nid); +bool vg_main_is_game(const char titleid[], const char self[], uint32_t nid, bool update_support); #endif diff --git a/src/patch.c b/src/patch.c index de4d6c4..81f7b20 100644 --- a/src/patch.c +++ b/src/patch.c @@ -151,7 +151,7 @@ static vg_io_status_t vg_patch_parse_section(const char line[]) { g_patch_total_count++; - if (vg_main_is_game(titleid, self, nid)) { + if (vg_main_is_game(titleid, self, nid, true)) { g_patch_section = PATCH_SECTION_GAME; } else { // If previous patch section didn't have any patches ->