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
@ -437,6 +437,12 @@ bool install(char* fpath, bool systemTitle)
|
|||||||
(h->tid_low & 0xFF) == 'A' || //and 'A' (all region)
|
(h->tid_low & 0xFF) == 'A' || //and 'A' (all region)
|
||||||
region == 0 //if the region check failed somehow, blacklist everything
|
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("\x1B[31m"); //red
|
||||||
iprintf("Error: ");
|
iprintf("Error: ");
|
||||||
@ -446,6 +452,7 @@ bool install(char* fpath, bool systemTitle)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//confirmation message
|
//confirmation message
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user