mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Fix FAT_setAttr result check
This commit is contained in:
parent
a4f1ba9420
commit
6c17222f2d
@ -398,7 +398,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
//Mark the tmd as readonly
|
//Mark the tmd as readonly
|
||||||
int fatAttributes = FAT_getAttr("nand:/title/00030017/484e4141/content/title.tmd");
|
int fatAttributes = FAT_getAttr("nand:/title/00030017/484e4141/content/title.tmd");
|
||||||
if(!FAT_setAttr("nand:/title/00030017/484e4141/content/title.tmd", fatAttributes | ATTR_READONLY) != 0)
|
if(FAT_setAttr("nand:/title/00030017/484e4141/content/title.tmd", fatAttributes | ATTR_READONLY) != 0)
|
||||||
{
|
{
|
||||||
messageBox("\x1B[31mError:\x1B[33m Failed to mark unlaunch's title.tmd as read only\n");
|
messageBox("\x1B[31mError:\x1B[33m Failed to mark unlaunch's title.tmd as read only\n");
|
||||||
remove("nand:/title/00030017/484e4141/content/title.tmd");
|
remove("nand:/title/00030017/484e4141/content/title.tmd");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user