mirror of
https://github.com/wiiu-env/ContentRedirectionModule.git
synced 2025-05-17 09:47:00 +02:00
Use the latest libfunctionpatcher
This commit is contained in:
parent
8043922311
commit
f3f6fae798
@ -1,7 +1,7 @@
|
|||||||
FROM wiiuenv/devkitppc:20220303
|
FROM wiiuenv/devkitppc:20220507
|
||||||
|
|
||||||
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/libromfs_wiiu:20220414 /artifacts $DEVKITPRO
|
COPY --from=wiiuenv/libromfs_wiiu:20220414 /artifacts $DEVKITPRO
|
||||||
COPY --from=wiiuenv/libcontentredirection:20220414 /artifacts $DEVKITPRO
|
COPY --from=wiiuenv/libcontentredirection:20220414 /artifacts $DEVKITPRO
|
||||||
|
|
||||||
|
13
src/main.cpp
13
src/main.cpp
@ -10,9 +10,16 @@ WUMS_USE_WUT_DEVOPTAB();
|
|||||||
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 < fs_file_function_replacements_size; i++) {
|
||||||
FunctionPatcherPatchFunction(fs_file_function_replacements, fs_file_function_replacements_size);
|
if (!FunctionPatcherPatchFunction(&fs_file_function_replacements[i], nullptr)) {
|
||||||
FunctionPatcherPatchFunction(fs_dir_function_replacements, fs_dir_function_replacements_size);
|
OSFatal("homebrew_content_redirection: Failed to patch function");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (uint32_t i = 0; i < fs_dir_function_replacements_size; i++) {
|
||||||
|
if (!FunctionPatcherPatchFunction(&fs_dir_function_replacements[i], nullptr)) {
|
||||||
|
OSFatal("homebrew_content_redirection: Failed to patch function");
|
||||||
|
}
|
||||||
|
}
|
||||||
DEBUG_FUNCTION_LINE("Patch functions finished");
|
DEBUG_FUNCTION_LINE("Patch functions finished");
|
||||||
deinitLogging();
|
deinitLogging();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user