Use the LoggingModule if possible

This commit is contained in:
Maschell 2021-11-06 23:22:37 +01:00
parent c2781569ce
commit 1d029f6274
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/libwupsbackend:20211001 /artifacts $DEVKITPRO
COPY --from=wiiuenv/librpxloader:20210924 /artifacts $DEVKITPRO

View File

@ -1,6 +1,8 @@
#include <wups.h>
#include "utils/TcpReceiver.h"
#include <whb/log_udp.h>
#include <whb/log_cafe.h>
#include <whb/log_module.h>
WUPS_PLUGIN_NAME("Wiiload");
WUPS_PLUGIN_DESCRIPTION("Wiiload Server");
@ -14,7 +16,10 @@ TcpReceiver *thread = nullptr;
/* Entry point */
ON_APPLICATION_START() {
if (!WHBLogModuleInit()) {
WHBLogCafeInit();
WHBLogUdpInit();
}
DEBUG_FUNCTION_LINE("Start wiiload thread");
thread = new TcpReceiver(4299);
}