Fix loading .rpx bigger than 4 MiB

This commit is contained in:
Maschell 2022-08-26 11:17:27 +02:00
parent a61f485391
commit 771ef45cd3

View File

@ -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;