Disable title manager for mounted images

This commit is contained in:
d0k3 2020-11-26 00:03:32 +01:00
parent efcfed31b3
commit 2f2b7faeb4

View File

@ -2402,8 +2402,9 @@ u32 GodMode(int entrypoint) {
char tpath[16] = { 0 }; char tpath[16] = { 0 };
snprintf(tpath, 16, "%2.2s/dbs/title.db", curr_entry->path); snprintf(tpath, 16, "%2.2s/dbs/title.db", curr_entry->path);
int n_opt = 0; int n_opt = 0;
int tman = ((strncmp(curr_entry->path, tpath, 16) == 0) || int tman = (!(DriveType(curr_entry->path) & DRV_IMAGE) &&
(!*current_path && PathExist(tpath))) ? ++n_opt : -1; ((strncmp(curr_entry->path, tpath, 16) == 0) ||
(!*current_path && PathExist(tpath)))) ? ++n_opt : -1;
int srch_f = ++n_opt; int srch_f = ++n_opt;
int fixcmac = (!*current_path && ((strspn(curr_entry->path, "14AB") == 1) || int fixcmac = (!*current_path && ((strspn(curr_entry->path, "14AB") == 1) ||
((GetMountState() == IMG_NAND) && (*(curr_entry->path) == '7')))) ? ++n_opt : -1; ((GetMountState() == IMG_NAND) && (*(curr_entry->path) == '7')))) ? ++n_opt : -1;