Skip to content

Commit

Permalink
Change title.tmd not found message
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Mar 5, 2020
1 parent 8552b8c commit b45ae62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ int main( int argc, char **argv) {
char tmdpath[256];
for (u8 i = 0x41; i <= 0x5A; i++) {
snprintf (tmdpath, sizeof(tmdpath), "sd:/title/00030017/484e41%x/content/title.tmd", i);
if (access(tmdpath, F_OK)) {} else { break; }
if (access(tmdpath, F_OK) == 0) {
break;
}
}
FILE* f_tmd = fopen(tmdpath, "rb");
if (f_tmd) {
Expand Down Expand Up @@ -373,8 +375,9 @@ int main( int argc, char **argv) {
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, true, true);
consoleClear();
printf("Error!\n");
printf("Failed to read Launcher's\n");
printf("title.tmd\n");
printf("\n");
printf("Launcher's title.tmd is\n");
printf("not found!\n");
consoleInit(NULL, 1, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
consoleClear();
}
Expand Down

0 comments on commit b45ae62

Please sign in to comment.