Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a9d0e2569 | ||
|
|
041ca8451e | ||
|
|
2382e6d82c |
@@ -509,8 +509,8 @@ void patchCode(u64 progId, u8 *code, u32 size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@ void firmRead(void *dest, const char *firmFolder)
|
|||||||
|
|
||||||
f_opendir(&dir, path);
|
f_opendir(&dir, path);
|
||||||
|
|
||||||
u32 id = 0;
|
u32 id = 0xFFFFFFFF;
|
||||||
|
|
||||||
//Parse the target directory
|
//Parse the target directory
|
||||||
while(f_readdir(&dir, &info) == FR_OK && info.fname[0])
|
while(f_readdir(&dir, &info) == FR_OK && info.fname[0])
|
||||||
@@ -87,8 +87,8 @@ void firmRead(void *dest, const char *firmFolder)
|
|||||||
tempId += *tmp > '9' ? *tmp - 'A' + 10 : *tmp - '0';
|
tempId += *tmp > '9' ? *tmp - 'A' + 10 : *tmp - '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
//Found a newer cxi
|
//Found an older cxi
|
||||||
if(tempId > id) id = tempId;
|
if(tempId < id) id = tempId;
|
||||||
}
|
}
|
||||||
|
|
||||||
f_closedir(&dir);
|
f_closedir(&dir);
|
||||||
|
|||||||
Reference in New Issue
Block a user