From 1d029f6274968781f027fb341fd3308e5a06cfa4 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 6 Nov 2021 23:22:37 +0100 Subject: [PATCH] Use the LoggingModule if possible --- Dockerfile | 2 +- src/main.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 770a64a..4780dd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/src/main.cpp b/src/main.cpp index 47f1c57..c2aa5e5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,8 @@ #include #include "utils/TcpReceiver.h" #include +#include +#include WUPS_PLUGIN_NAME("Wiiload"); WUPS_PLUGIN_DESCRIPTION("Wiiload Server"); @@ -14,7 +16,10 @@ TcpReceiver *thread = nullptr; /* Entry point */ ON_APPLICATION_START() { - WHBLogUdpInit(); + if (!WHBLogModuleInit()) { + WHBLogCafeInit(); + WHBLogUdpInit(); + } DEBUG_FUNCTION_LINE("Start wiiload thread"); thread = new TcpReceiver(4299); }