diff --git a/Dockerfile b/Dockerfile index 3990ccb..09dc3f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM wiiuenv/devkitppc:20210920 +FROM wiiuenv/devkitppc:20211106 COPY --from=wiiuenv/libmappedmemory:20210924 /artifacts $DEVKITPRO COPY --from=wiiuenv/wiiumodulesystem:20211031 /artifacts $DEVKITPRO diff --git a/source/main.cpp b/source/main.cpp index 30f5705..2636da0 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -1,5 +1,7 @@ #include +#include #include +#include #include #include #include @@ -22,7 +24,10 @@ WUMS_RELOCATIONS_DONE(args) { OSFatal("PatchMemoryRelocations: The module information struct version does not match."); } - WHBLogUdpInit(); + if (!WHBLogModuleInit()) { + WHBLogCafeInit(); + WHBLogUdpInit(); + } for (int32_t i = 0; i < gModuleData->number_used_modules; i++) { if (strcmp("homebrew_memorymapping", gModuleData->module_data[i].module_export_name) == 0 ||