Skip to content

Commit

Permalink
Show message if Launcher's .tmd failed to be read
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jun 5, 2018
1 parent c142bba commit 98df64d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int main( int argc, char **argv) {
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, true, true);
consoleClear();

printf("HiyaCFW v1.3.1 configuration\n");
printf("HiyaCFW v1.3.2 configuration\n");
printf("Press A to select, START to save");
printf("\n");

Expand Down Expand Up @@ -393,6 +393,15 @@ int main( int argc, char **argv) {
consoleClear();
}
fclose(f_tmd);
} else {
setupConsole();
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");
consoleInit(NULL, 1, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
consoleClear();
}

} else {
Expand Down

0 comments on commit 98df64d

Please sign in to comment.