Adapt to new plugin identifier

This commit is contained in:
Maschell 2020-08-29 19:50:17 +02:00
parent ddbdc15da3
commit fc887272c5
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
FROM wiiuenv/devkitppc:20200810 FROM wiiuenv/devkitppc:20200810
COPY --from=wiiuenv/libwupsbackend:20200812 /artifacts $DEVKITPRO COPY --from=wiiuenv/libwupsbackend:20200812 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiupluginsystem:20200812 /artifacts $DEVKITPRO COPY --from=wiiuenv/wiiupluginsystem:20200829 /artifacts $DEVKITPRO
WORKDIR project WORKDIR project

View File

@ -226,12 +226,12 @@ int32_t TcpReceiver::loadToMemory(int32_t clientSocket, uint32_t ipAddress) {
fileSize = fileSizeUnc; fileSize = fileSizeUnc;
} }
if (inflatedData[0x7] == 0xCA && inflatedData[0x8] == 0xFE && inflatedData[0x9] != 0xDE && inflatedData[0xA] != 0xAD) { if (inflatedData[0x7] == 0xCA && inflatedData[0x8] == 0xFE && inflatedData[0x9] != 0x50 && inflatedData[0xA] != 0x4C) {
DEBUG_FUNCTION_LINE("Try to load a rpx"); DEBUG_FUNCTION_LINE("Try to load a rpx");
FSUtils::CreateSubfolder(RPX_TEMP_PATH); FSUtils::CreateSubfolder(RPX_TEMP_PATH);
res = FSUtils::saveBufferToFile(RPX_TEMP_FILE, inflatedData, fileSize); res = FSUtils::saveBufferToFile(RPX_TEMP_FILE, inflatedData, fileSize);
loadedRPX = true; loadedRPX = true;
} else if (inflatedData[0x7] == 0xCA && inflatedData[0x8] == 0xFE && inflatedData[0x9] == 0xDE && inflatedData[0xA] == 0xAD) { } else if (inflatedData[0x7] == 0xCA && inflatedData[0x8] == 0xFE && inflatedData[0x9] == 0x50 && inflatedData[0xA] == 0x4C) {
auto newContainer = PluginUtils::getPluginForBuffer((char *) inflatedData, fileSize); auto newContainer = PluginUtils::getPluginForBuffer((char *) inflatedData, fileSize);
if (newContainer) { if (newContainer) {
auto oldPlugins = PluginUtils::getLoadedPlugins(8); auto oldPlugins = PluginUtils::getLoadedPlugins(8);
@ -280,7 +280,7 @@ int32_t TcpReceiver::loadToMemory(int32_t clientSocket, uint32_t ipAddress) {
FSUtils::CreateSubfolder(RPX_TEMP_PATH); FSUtils::CreateSubfolder(RPX_TEMP_PATH);
res = FSUtils::saveBufferToFile(RPX_TEMP_FILE, loadAddress, fileSize); res = FSUtils::saveBufferToFile(RPX_TEMP_FILE, loadAddress, fileSize);
loadedRPX = true; loadedRPX = true;
} else if (loadAddress[0x7] == 0xCA && loadAddress[0x8] == 0xFE && loadAddress[0x9] == 0xDE) { } else if (loadAddress[0x7] == 0xCA && loadAddress[0x8] == 0xFE && loadAddress[0x9] == 0x50) {
OSFatal("Not implemented yet"); OSFatal("Not implemented yet");
} }
} }