Allow installing blacklisted titles if missing

This commit is contained in:
Pk11 2022-04-30 14:59:44 -05:00
parent 7ea87f3bd5
commit 393a01eba8

View File

@ -437,6 +437,12 @@ bool install(char* fpath, bool systemTitle)
(h->tid_low & 0xFF) == 'A' || //and 'A' (all region)
region == 0 //if the region check failed somehow, blacklist everything
))
{
//check if title exists, if it does then show any error
//otherwise allow reinstalling it
char path[PATH_MAX];
sprintf(path, "nand:/title/%08lx/%08lx/content/title.tmd", h->tid_high, h->tid_low);
if (access(path, F_OK) == 0)
{
iprintf("\x1B[31m"); //red
iprintf("Error: ");
@ -446,6 +452,7 @@ bool install(char* fpath, bool systemTitle)
goto error;
}
}
}
//confirmation message
{