mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Fix #585
This commit is contained in:
parent
c265e3ac2f
commit
da28c0ef40
@ -441,6 +441,7 @@ u32 CheckFixCmdCmac(const char* path, bool fix) {
|
|||||||
u32 RecursiveFixFileCmacWorker(char* path) {
|
u32 RecursiveFixFileCmacWorker(char* path) {
|
||||||
FILINFO fno;
|
FILINFO fno;
|
||||||
DIR pdir;
|
DIR pdir;
|
||||||
|
u32 err = 0;
|
||||||
|
|
||||||
if (fvx_opendir(&pdir, path) == FR_OK) { // process folder contents
|
if (fvx_opendir(&pdir, path) == FR_OK) { // process folder contents
|
||||||
char pathstr[32 + 1];
|
char pathstr[32 + 1];
|
||||||
@ -456,9 +457,9 @@ u32 RecursiveFixFileCmacWorker(char* path) {
|
|||||||
if (fno.fname[0] == 0) {
|
if (fno.fname[0] == 0) {
|
||||||
break;
|
break;
|
||||||
} else if (fno.fattrib & AM_DIR) { // directory, recurse through it
|
} else if (fno.fattrib & AM_DIR) { // directory, recurse through it
|
||||||
if (RecursiveFixFileCmacWorker(path) != 0) return 1;
|
if (RecursiveFixFileCmacWorker(path) != 0) err = 1;
|
||||||
} else if (CheckCmacPath(path) == 0) { // file, try to fix the CMAC
|
} else if (CheckCmacPath(path) == 0) { // file, try to fix the CMAC
|
||||||
if (FixFileCmac(path) != 0) return 1;
|
if (FixFileCmac(path) != 0) err = 1;
|
||||||
ShowString("%s\nFixing CMACs, please wait...", pathstr);
|
ShowString("%s\nFixing CMACs, please wait...", pathstr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -467,7 +468,7 @@ u32 RecursiveFixFileCmacWorker(char* path) {
|
|||||||
} else if (CheckCmacPath(path) == 0) // fix single file CMAC
|
} else if (CheckCmacPath(path) == 0) // fix single file CMAC
|
||||||
return FixFileCmac(path);
|
return FixFileCmac(path);
|
||||||
|
|
||||||
return 0;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 RecursiveFixFileCmac(const char* path) {
|
u32 RecursiveFixFileCmac(const char* path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user