From 392c972b05906dd72655906817987e7edc1bb767 Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Tue, 23 Apr 2024 16:19:51 +0200 Subject: [PATCH] Fix FAT_setAttr result check --- arm9/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/src/main.c b/arm9/src/main.c index e7709d8..f5e93af 100644 --- a/arm9/src/main.c +++ b/arm9/src/main.c @@ -398,7 +398,7 @@ int main(int argc, char **argv) //Mark the tmd as readonly 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"); remove("nand:/title/00030017/484e4141/content/title.tmd");