Use latest libfunctionpatcher version

This commit is contained in:
Maschell 2022-05-08 19:31:18 +02:00
parent 58fbfc270b
commit c4050b3090
2 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,8 @@
FROM wiiuenv/devkitppc:20220417 FROM wiiuenv/devkitppc:20220507
COPY --from=wiiuenv/librpxloader:20220417 /artifacts $DEVKITPRO COPY --from=wiiuenv/librpxloader:20220417 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libfunctionpatcher:20220211 /artifacts $DEVKITPRO COPY --from=wiiuenv/libfunctionpatcher:20220507 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiumodulesystem:20220204 /artifacts $DEVKITPRO COPY --from=wiiuenv/wiiumodulesystem:20220507 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libwuhbutils:20220415 /artifacts $DEVKITPRO COPY --from=wiiuenv/libwuhbutils:20220415 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libcontentredirection:20220414 /artifacts $DEVKITPRO COPY --from=wiiuenv/libcontentredirection:20220414 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libromfs_wiiu:20220414 /artifacts $DEVKITPRO COPY --from=wiiuenv/libromfs_wiiu:20220414 /artifacts $DEVKITPRO

View File

@ -23,8 +23,11 @@ extern "C" bool WUU_GetVersion();
WUMS_INITIALIZE() { WUMS_INITIALIZE() {
initLogging(); initLogging();
DEBUG_FUNCTION_LINE("Patch functions"); DEBUG_FUNCTION_LINE("Patch functions");
// we only patch static functions, we don't need re-patch them at every launch for (uint32_t i = 0; i < rpx_utils_function_replacements_size; i++) {
FunctionPatcherPatchFunction(rpx_utils_function_replacements, rpx_utils_function_replacements_size); if (!FunctionPatcherPatchFunction(&rpx_utils_function_replacements[i], nullptr)) {
OSFatal("homebrew_rpx_loader: Failed to patch function");
}
}
DEBUG_FUNCTION_LINE("Patch functions finished"); DEBUG_FUNCTION_LINE("Patch functions finished");
gReplacementInfo = {}; gReplacementInfo = {};