formatting

This commit is contained in:
Edoardo Lolletti 2024-04-25 12:08:05 +02:00
parent 2b8057a2d2
commit 7c0ed6201f

View File

@ -50,7 +50,7 @@ static void _setupScreens()
vramSetBankA(VRAM_A_MAIN_BG); vramSetBankA(VRAM_A_MAIN_BG);
vramSetBankC(VRAM_C_SUB_BG); vramSetBankC(VRAM_C_SUB_BG);
consoleInit(&topScreen, 3, BgType_Text4bpp, BgSize_T_256x256, 31, 0, true, true); consoleInit(&topScreen, 3, BgType_Text4bpp, BgSize_T_256x256, 31, 0, true, true);
consoleInit(&bottomScreen, 3, BgType_Text4bpp, BgSize_T_256x256, 31, 0, false, true); consoleInit(&bottomScreen, 3, BgType_Text4bpp, BgSize_T_256x256, 31, 0, false, true);
clearScreen(&bottomScreen); clearScreen(&bottomScreen);
@ -217,7 +217,7 @@ bool patchMainTmd(const char* path)
// If we don't do this and unlaunch is on the tmd, it will take over and prevent loading HNAA // If we don't do this and unlaunch is on the tmd, it will take over and prevent loading HNAA
messageBox(" Unlaunch is already installed \nwith the legacy method\nTrying to remove...\n"); messageBox(" Unlaunch is already installed \nwith the legacy method\nTrying to remove...\n");
if (ftruncate(fileno(launcherTmd), 520) != 0) { if (ftruncate(fileno(launcherTmd), 520) != 0) {
messageBox("\x1B[31mError:\x1B[33m Failed to remove old unlaunch\n"); messageBox("\x1B[31mError:\x1B[33m Failed to remove old unlaunch\n");
fclose(launcherTmd); fclose(launcherTmd);
return false; return false;
} }
@ -258,12 +258,12 @@ bool restoreMainTmd(const char* path)
// See: http://docs.randommeaninglesscharacters.com/unlaunch.html // See: http://docs.randommeaninglesscharacters.com/unlaunch.html
messageBox(" Unlaunch was installed with the legacy method\nTrimming tmd\n"); messageBox(" Unlaunch was installed with the legacy method\nTrimming tmd\n");
if (ftruncate(fileno(launcherTmd), 520) != 0) { if (ftruncate(fileno(launcherTmd), 520) != 0) {
messageBox("\x1B[31mError:\x1B[33m Failed to remove unlaunch\n"); messageBox("\x1B[31mError:\x1B[33m Failed to remove unlaunch\n");
fclose(launcherTmd); fclose(launcherTmd);
return false; return false;
} }
fclose(launcherTmd); fclose(launcherTmd);
return true; return true;
} }
messageBox("\x1B[31mError:\x1B[33m Unlaunch was installed with an\nunknown method\naborting\n"); messageBox("\x1B[31mError:\x1B[33m Unlaunch was installed with an\nunknown method\naborting\n");
fclose(launcherTmd); fclose(launcherTmd);