mirror of
https://github.com/wiiu-env/MochaPayload.git
synced 2024-11-22 16:09:14 +01:00
Fix loading .rpx bigger than 4 MiB
This commit is contained in:
parent
a61f485391
commit
771ef45cd3
@ -91,6 +91,8 @@ int _MCP_LoadFile_patch(ipcmessage *msg) {
|
|||||||
replace_target = LOAD_RPX_TARGET_SD_CARD;
|
replace_target = LOAD_RPX_TARGET_SD_CARD;
|
||||||
replace_filesize = 0; // unknown
|
replace_filesize = 0; // unknown
|
||||||
replace_fileoffset = 0;
|
replace_fileoffset = 0;
|
||||||
|
} else if (strncmp(request->name, "safe.rpx", strlen("safe.rpx")) == 0 || strncmp(request->name, "ply.rpx", strlen("ply.rpx")) == 0) {
|
||||||
|
// Needed to support loading files > 4MiB
|
||||||
} else if (!doWantReplaceRPX) {
|
} else if (!doWantReplaceRPX) {
|
||||||
doWantReplaceRPX = false; // Only replace it once.
|
doWantReplaceRPX = false; // Only replace it once.
|
||||||
replace_path = NULL;
|
replace_path = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user