forked from Mirror/GodMode9
FIRM Installer: show proper success / failure message
This commit is contained in:
parent
1a65b4e7f0
commit
0c07b17df1
@ -1439,7 +1439,8 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, DirStruct* cur
|
|||||||
// this only works up to FIRM1;
|
// this only works up to FIRM1;
|
||||||
slots = ShowSelectPrompt(3, optionstr, "%s (%dkB)\nInstall to SysNAND?", pathstr, firm_size / 1024);
|
slots = ShowSelectPrompt(3, optionstr, "%s (%dkB)\nInstall to SysNAND?", pathstr, firm_size / 1024);
|
||||||
} else slots = ShowPrompt(true, "%s (%dkB)\nInstall to SysNAND?", pathstr, firm_size / 1024) ? 1 : 0;
|
} else slots = ShowPrompt(true, "%s (%dkB)\nInstall to SysNAND?", pathstr, firm_size / 1024) ? 1 : 0;
|
||||||
if (slots) SafeInstallFirm(curr_entry->path, slots);
|
if (slots) ShowPrompt(false, "%s (%dkB)\nInstall %s", pathstr, firm_size / 1024,
|
||||||
|
(SafeInstallFirm(curr_entry->path, slots) == 0) ? "success" : "failed!");
|
||||||
return 0;
|
return 0;
|
||||||
} else if ((user_select == boot)) {
|
} else if ((user_select == boot)) {
|
||||||
size_t firm_size = FileGetSize(curr_entry->path);
|
size_t firm_size = FileGetSize(curr_entry->path);
|
||||||
@ -1655,9 +1656,6 @@ u32 GodMode(bool is_b9s) {
|
|||||||
clipboard->n_entries = 0;
|
clipboard->n_entries = 0;
|
||||||
memset(panedata, 0x00, 0x10000);
|
memset(panedata, 0x00, 0x10000);
|
||||||
|
|
||||||
// I2C init
|
|
||||||
// I2C_init();
|
|
||||||
|
|
||||||
// check for embedded essential backup
|
// check for embedded essential backup
|
||||||
if (IS_SIGHAX && !PathExist("S:/essential.exefs") && CheckGenuineNandNcsd() &&
|
if (IS_SIGHAX && !PathExist("S:/essential.exefs") && CheckGenuineNandNcsd() &&
|
||||||
ShowPrompt(true, "Essential files backup not found.\nCreate one now?")) {
|
ShowPrompt(true, "Essential files backup not found.\nCreate one now?")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user