Compare commits

...

1 Commits

Author SHA1 Message Date
coah
e64a75eda4 cleanup(iplNandSDWorker): rename unk_0x04 to mbCancel
requestCancel() sets this flag; work loops check it to abort.
2026-10-01 19:07:29 -05:00
2 changed files with 5 additions and 5 deletions

View File

@@ -152,7 +152,7 @@ namespace ipl {
BOOL is_working();
#ifdef IPL_SD_CHANNEL_SELECT_CPP
void requestCancel() { unk_0x04 = true; }
void requestCancel() { mbCancel = true; }
#endif
WIISaveBannerFile* get_cached_nand_save_banner(ESTitleId titleId);
@@ -531,7 +531,7 @@ namespace ipl {
static void wad_backup_progress_callback(u32 completed, u32 total, BOOL done);
Work* myWork; // 0x00
bool unk_0x04; // 0x04
bool mbCancel; // 0x04
static const char* c_banner_file_name;
static const char* c_nocopy_folder_name;

View File

@@ -150,7 +150,7 @@ namespace ipl {
myWork->sdWriteProtected = FALSE;
myWork->prevAsyncResult = RESULT_WORKING;
unk_0x04 = false;
mbCancel = false;
OSResumeThread(&myWork->thread);
}
@@ -1235,7 +1235,7 @@ namespace ipl {
int result;
OSReport("NandSDWorker: cleaning partial nand app...\n");
for (int i = 0; i < titleIdCount; i++) {
if (unk_0x04 != false) {
if (mbCancel != false) {
return RESULT_UNK_18;
}
@@ -4877,7 +4877,7 @@ namespace ipl {
strncat(fmtStr, fileName, NAND_MAX_PATH);
while (faErr == FA_ERR_SUCCESS) {
if (unk_0x04 != false) {
if (mbCancel != false) {
return RESULT_UNK_18;
}