Changed sourcecode for CPR

This commit is contained in:
Calvin Fuchs
2021-06-18 03:11:23 +02:00
parent dc74e50356
commit b87e574f29
4 changed files with 173 additions and 60 deletions

View File

@@ -291,25 +291,25 @@ void ipl_main()
gfx_clearscreen();
int res = -1;
// int res = -1;
if (btn_read() & BTN_VOL_DOWN || DumpKeys())
res = GetKeysFromFile("sd:/switch/prod.keys");
// if (btn_read() & BTN_VOL_DOWN || DumpKeys())
// res = GetKeysFromFile("sd:/switch/prod.keys");
TConf.keysDumped = (res > 0) ? 0 : 1;
// TConf.keysDumped = (res > 0) ? 0 : 1;
if (res > 0)
DrawError(newErrCode(TE_ERR_KEYDUMP_FAIL));
// if (res > 0)
// DrawError(newErrCode(TE_ERR_KEYDUMP_FAIL));
if (TConf.keysDumped)
SetKeySlots();
// if (TConf.keysDumped)
// SetKeySlots();
if (res == 0)
hidWait();
// if (res == 0)
// hidWait();
if (FileExists("sd:/startup.te"))
RunScript("sd:/", newFSEntry("startup.te"));
// if (FileExists("sd:/startup.te"))
// RunScript("sd:/", newFSEntry("startup.te"));
EnterMainMenu();