Use latest librpxloader for loading homebrew

This commit is contained in:
Maschell 2022-08-25 15:59:48 +02:00
parent 2d87a6e982
commit 6189288b5a
3 changed files with 6 additions and 9 deletions

View File

@ -1,7 +1,7 @@
FROM wiiuenv/devkitppc:20220507 FROM wiiuenv/devkitppc:20220806
COPY --from=wiiuenv/libwupsbackend:20220514 /artifacts $DEVKITPRO COPY --from=wiiuenv/libwupsbackend:20220724 /artifacts $DEVKITPRO
COPY --from=wiiuenv/librpxloader:20220422 /artifacts $DEVKITPRO COPY --from=wiiuenv/librpxloader:20220825 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiupluginsystem:20220513 /artifacts $DEVKITPRO COPY --from=wiiuenv/wiiupluginsystem:20220724 /artifacts $DEVKITPRO
WORKDIR project WORKDIR project

View File

@ -16,7 +16,7 @@ TcpReceiver *thread = nullptr;
INITIALIZE_PLUGIN() { INITIALIZE_PLUGIN() {
RPXLoaderStatus error; RPXLoaderStatus error;
if ((error = RPXLoader_Init()) != RPX_LOADER_RESULT_SUCCESS) { if ((error = RPXLoader_InitLibrary()) != RPX_LOADER_RESULT_SUCCESS) {
DEBUG_FUNCTION_LINE_ERR("WiiLoad Plugin: Failed to init RPXLoader. Error %d", error); DEBUG_FUNCTION_LINE_ERR("WiiLoad Plugin: Failed to init RPXLoader. Error %d", error);
OSFatal("WiiLoad Plugin: Failed to init RPXLoader."); OSFatal("WiiLoad Plugin: Failed to init RPXLoader.");
} }

View File

@ -303,11 +303,8 @@ int32_t TcpReceiver::loadToMemory(int32_t clientSocket, uint32_t ipAddress) {
} }
if (loadedRPX) { if (loadedRPX) {
DEBUG_FUNCTION_LINE("Starting a homebrew title!"); RPXLoader_LaunchHomebrew(file_path)
RPXLoader_LoadFromSDOnNextLaunch(file_path);
uint64_t titleID = _SYSGetSystemApplicationTitleId(SYSTEM_APP_ID_HEALTH_AND_SAFETY);
_SYSLaunchTitleWithStdArgsInNoSplash(titleID, nullptr);
return fileSize; return fileSize;
} }