Fix payload size check
This commit is contained in:
parent
9f30244bfb
commit
10f555b6fb
@ -161,14 +161,12 @@ void loadPayload(u32 pressed, const char *payloadPath)
|
|||||||
|
|
||||||
payloadSize = fileRead(firm, path, maxPayloadSize);
|
payloadSize = fileRead(firm, path, maxPayloadSize);
|
||||||
|
|
||||||
if(!payloadSize || !checkFirmPayload()) return;
|
if(payloadSize <= 0x200 || !checkFirmPayload()) return;
|
||||||
|
|
||||||
writeConfig(true);
|
writeConfig(true);
|
||||||
|
|
||||||
if(!isSdMode)
|
if(isSdMode) sprintf(absPath, "sdmc:/luma/%s", path);
|
||||||
sprintf(absPath, "nand:/rw/luma/%s", path);
|
else sprintf(absPath, "nand:/rw/luma/%s", path);
|
||||||
else
|
|
||||||
sprintf(absPath, "sdmc:/luma/%s", path);
|
|
||||||
|
|
||||||
char *argv[2] = {absPath, (char *)fbs};
|
char *argv[2] = {absPath, (char *)fbs};
|
||||||
initScreens();
|
initScreens();
|
||||||
|
Reference in New Issue
Block a user