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/libfunctionpatcher:20220211 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiumodulesystem:20220204 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libfunctionpatcher:20220507 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiumodulesystem:20220507 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libwuhbutils:20220415 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libcontentredirection:20220414 /artifacts $DEVKITPRO
COPY --from=wiiuenv/libromfs_wiiu:20220414 /artifacts $DEVKITPRO

View File

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