From 5f249475c3a315467440d3b99802b708ad979f74 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 19 Apr 2024 13:12:12 +0200 Subject: [PATCH] Allow logging in init hook --- source/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/main.cpp b/source/main.cpp index f70821d..3bec26a 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -55,6 +55,10 @@ WUMS_INITIALIZE(args) { return; } +#ifdef DEBUG + initLogging(); +#endif + UpdateFunctionPointer(); ucSetupRequired = 0; @@ -73,6 +77,10 @@ WUMS_INITIALIZE(args) { OSFatal("homebrew_memorymapping: Failed to patch function"); } } + +#ifdef DEBUG + deinitLogging(); +#endif } WUMS_APPLICATION_STARTS() {