From ffd4c4f894cf1ee2137059022708ce2d141b939e Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 24 Jan 2022 18:49:31 +0100 Subject: [PATCH] Only declare variables when needed --- source/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index 35fc5e1..2b2da1a 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -10,9 +10,11 @@ WUMS_MODULE_EXPORT_NAME("homebrew_functionpatcher"); WUMS_MODULE_SKIP_INIT_FINI(); +#ifdef DEBUG uint32_t moduleLogInit = false; uint32_t cafeLogInit = false; uint32_t udpLogInit = false; +#endif WUMS_APPLICATION_STARTS() { #ifdef DEBUG @@ -22,7 +24,6 @@ WUMS_APPLICATION_STARTS() { } #endif // DEBUG FunctionPatcherResetLibHandles(); - } WUMS_APPLICATION_REQUESTS_EXIT() {