mirror of
https://github.com/wiiu-env/PatchMemoryRelocationsModule.git
synced 2024-11-13 05:25:08 +01:00
Use the LoggingModule if possible
This commit is contained in:
parent
a789bd7617
commit
7fd045eeb4
@ -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
|
||||
|
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user