mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Allow installing blacklisted titles if missing
This commit is contained in:
parent
7ea87f3bd5
commit
393a01eba8
@ -438,12 +438,19 @@ bool install(char* fpath, bool systemTitle)
|
|||||||
region == 0 //if the region check failed somehow, blacklist everything
|
region == 0 //if the region check failed somehow, blacklist everything
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
iprintf("\x1B[31m"); //red
|
//check if title exists, if it does then show any error
|
||||||
iprintf("Error: ");
|
//otherwise allow reinstalling it
|
||||||
iprintf("\x1B[33m"); //yellow
|
char path[PATH_MAX];
|
||||||
iprintf("This title cannot be\ninstalled to SysNAND.\n");
|
sprintf(path, "nand:/title/%08lx/%08lx/content/title.tmd", h->tid_high, h->tid_low);
|
||||||
iprintf("\x1B[47m"); //white
|
if (access(path, F_OK) == 0)
|
||||||
goto error;
|
{
|
||||||
|
iprintf("\x1B[31m"); //red
|
||||||
|
iprintf("Error: ");
|
||||||
|
iprintf("\x1B[33m"); //yellow
|
||||||
|
iprintf("This title cannot be\ninstalled to SysNAND.\n");
|
||||||
|
iprintf("\x1B[47m"); //white
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user