Use LoggingModule for logging if possible

This commit is contained in:
Maschell 2021-11-06 23:14:05 +01:00
parent 1f2108dbb7
commit e84fcd6861
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/wiiupluginsystem:20211001 /artifacts $DEVKITPRO
COPY --from=wiiuenv/librpxloader:20211002 /artifacts $DEVKITPRO

View File

@ -12,7 +12,9 @@
#include "utils/StringTools.h"
#include <fs/DirList.h>
#include "fileinfos.h"
#include <whb/log_module.h>
#include <whb/log_udp.h>
#include <whb/log_cafe.h>
#include <rpxloader.h>
#include "fs/FSUtils.h"
#include "filelist.h"
@ -58,7 +60,10 @@ INITIALIZE_PLUGIN() {
}
ON_APPLICATION_START() {
WHBLogUdpInit();
if(!WHBLogModuleInit()){
WHBLogCafeInit();
WHBLogUdpInit();
}
if (OSGetTitleID() == 0x0005001010040000L || // Wii U Menu JPN
OSGetTitleID() == 0x0005001010040100L || // Wii U Menu USA