mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Batch operations: allow continue after failed operation
This commit is contained in:
parent
388a89a970
commit
1e39cbacd4
@ -1334,10 +1334,11 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
|
||||
DrawDirContents(current_dir, (*cursor = i), scroll);
|
||||
if (!(filetype & BIN_KEYDB) && (CryptGameFile(path, inplace, false) == 0)) n_success++;
|
||||
else if ((filetype & BIN_KEYDB) && (CryptAesKeyDb(path, inplace, false) == 0)) n_success++;
|
||||
else { // on failure: show error, break
|
||||
TruncateString(pathstr, path, 32, 8);
|
||||
ShowPrompt(false, "%s\nDecryption failed", pathstr);
|
||||
break;
|
||||
else { // on failure: show error, continue
|
||||
char lpathstr[32+1];
|
||||
TruncateString(lpathstr, path, 32, 8);
|
||||
if (ShowPrompt(true, "%s\nDecryption failed\n \nContinue?", lpathstr)) continue;
|
||||
else break;
|
||||
}
|
||||
current_dir->entry[i].marked = false;
|
||||
}
|
||||
@ -1382,10 +1383,11 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
|
||||
DrawDirContents(current_dir, (*cursor = i), scroll);
|
||||
if (!(filetype & BIN_KEYDB) && (CryptGameFile(path, inplace, true) == 0)) n_success++;
|
||||
else if ((filetype & BIN_KEYDB) && (CryptAesKeyDb(path, inplace, true) == 0)) n_success++;
|
||||
else { // on failure: show error, break
|
||||
TruncateString(pathstr, path, 32, 8);
|
||||
ShowPrompt(false, "%s\nEncryption failed", pathstr);
|
||||
break;
|
||||
else { // on failure: show error, continue
|
||||
char lpathstr[32+1];
|
||||
TruncateString(lpathstr, path, 32, 8);
|
||||
if (ShowPrompt(true, "%s\nEncryption failed\n \nContinue?", lpathstr)) continue;
|
||||
else break;
|
||||
}
|
||||
current_dir->entry[i].marked = false;
|
||||
}
|
||||
@ -1419,10 +1421,11 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
|
||||
DrawDirContents(current_dir, (*cursor = i), scroll);
|
||||
if (((user_select != cxi_dump) && (BuildCiaFromGameFile(path, force_legit) == 0)) ||
|
||||
((user_select == cxi_dump) && (DumpCxiSrlFromTmdFile(path) == 0))) n_success++;
|
||||
else { // on failure: show error, break
|
||||
TruncateString(pathstr, path, 32, 8);
|
||||
ShowPrompt(false, "%s\nBuild %s failed", pathstr, type);
|
||||
break;
|
||||
else { // on failure: show error, continue
|
||||
char lpathstr[32+1];
|
||||
TruncateString(lpathstr, path, 32, 8);
|
||||
if (ShowPrompt(true, "%s\nBuild %s failed\n \nContinue?", lpathstr, type)) continue;
|
||||
else break;
|
||||
}
|
||||
current_dir->entry[i].marked = false;
|
||||
}
|
||||
@ -1458,10 +1461,13 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
|
||||
DrawDirContents(current_dir, (*cursor = i), scroll);
|
||||
if ((filetype & IMG_NAND) && (ValidateNandDump(path) == 0)) n_success++;
|
||||
else if (VerifyGameFile(path) == 0) n_success++;
|
||||
else { // on failure: show error, break
|
||||
TruncateString(pathstr, path, 32, 8);
|
||||
ShowPrompt(false, "%s\nVerification failed", pathstr);
|
||||
break;
|
||||
else { // on failure: show error, continue
|
||||
char lpathstr[32+1];
|
||||
TruncateString(lpathstr, path, 32, 8);
|
||||
if (ShowPrompt(true, "%s\nVerification failed\n \nContinue?", lpathstr)) {
|
||||
if (!(filetype & (GAME_CIA|GAME_TMD))) ShowProgress(0, n_marked, path); // restart progress bar
|
||||
continue;
|
||||
} else break;
|
||||
}
|
||||
current_dir->entry[i].marked = false;
|
||||
}
|
||||
|
@ -46,6 +46,9 @@
|
||||
|
||||
// stuff in FCRAM
|
||||
|
||||
#define __FIRMRAM_ADDR (__FCRAM0_ADDR + 0x0001000)
|
||||
#define __FIRMRAM_END (__FIRMRAM_ADDR + 0x0400000)
|
||||
|
||||
#define __FIRMTMP_ADDR (__FCRAM0_END - 0x0800000)
|
||||
#define __FIRMTMP_END (__FIRMTMP_ADDR + 0x0400000)
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
MD5: A5B28945A7C051D7A0CD18AF0E580D1B
|
Loading…
x
Reference in New Issue
Block a user