From 2f2b7faeb412e8454c526610e42f860fcbbf4df4 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 26 Nov 2020 00:03:32 +0100 Subject: [PATCH] Disable title manager for mounted images --- arm9/source/godmode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arm9/source/godmode.c b/arm9/source/godmode.c index 7ed8e75..d4894a4 100644 --- a/arm9/source/godmode.c +++ b/arm9/source/godmode.c @@ -2402,8 +2402,9 @@ u32 GodMode(int entrypoint) { char tpath[16] = { 0 }; snprintf(tpath, 16, "%2.2s/dbs/title.db", curr_entry->path); int n_opt = 0; - int tman = ((strncmp(curr_entry->path, tpath, 16) == 0) || - (!*current_path && PathExist(tpath))) ? ++n_opt : -1; + int tman = (!(DriveType(curr_entry->path) & DRV_IMAGE) && + ((strncmp(curr_entry->path, tpath, 16) == 0) || + (!*current_path && PathExist(tpath)))) ? ++n_opt : -1; int srch_f = ++n_opt; int fixcmac = (!*current_path && ((strspn(curr_entry->path, "14AB") == 1) || ((GetMountState() == IMG_NAND) && (*(curr_entry->path) == '7')))) ? ++n_opt : -1;