mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Handle CTRtransfers with no valid destination
This commit is contained in:
parent
34e5b23c80
commit
63522346bf
@ -1391,11 +1391,13 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, DirStruct* cur
|
|||||||
optionstr[n_opt] = "Transfer to EmuNAND";
|
optionstr[n_opt] = "Transfer to EmuNAND";
|
||||||
destdrv[n_opt++] = "4:";
|
destdrv[n_opt++] = "4:";
|
||||||
}
|
}
|
||||||
user_select = (n_opt > 1) ? (int) ShowSelectPrompt(n_opt, optionstr, pathstr) : n_opt;
|
if (n_opt) {
|
||||||
if (user_select) {
|
user_select = (n_opt > 1) ? (int) ShowSelectPrompt(n_opt, optionstr, pathstr) : 1;
|
||||||
ShowPrompt(false, "%s\nCTRNAND transfer %s", pathstr,
|
if (user_select) {
|
||||||
(TransferCtrNandImage(curr_entry->path, destdrv[user_select-1]) == 0) ? "success" : "failed");
|
ShowPrompt(false, "%s\nCTRNAND transfer %s", pathstr,
|
||||||
}
|
(TransferCtrNandImage(curr_entry->path, destdrv[user_select-1]) == 0) ? "success" : "failed");
|
||||||
|
}
|
||||||
|
} else ShowPrompt(false, "%s\nNo valid destination found");
|
||||||
return 0;
|
return 0;
|
||||||
} else if (user_select == restore) { // -> restore SysNAND (A9LH preserving)
|
} else if (user_select == restore) { // -> restore SysNAND (A9LH preserving)
|
||||||
ShowPrompt(false, "%s\nNAND restore %s", pathstr,
|
ShowPrompt(false, "%s\nNAND restore %s", pathstr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user