Use the LoggingModule if possible

This commit is contained in:
Maschell 2021-11-06 23:20:28 +01:00
parent a789bd7617
commit 7fd045eeb4
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -1,5 +1,7 @@
#include <wums.h>
#include <whb/log_cafe.h>
#include <whb/log_udp.h>
#include <whb/log_module.h>
#include <coreinit/debug.h>
#include <cstring>
#include <coreinit/cache.h>
@ -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 ||