Only declare variables when needed

This commit is contained in:
Maschell 2022-01-24 18:49:31 +01:00
parent c9c0aeaa2b
commit ffd4c4f894

View File

@ -10,9 +10,11 @@
WUMS_MODULE_EXPORT_NAME("homebrew_functionpatcher"); WUMS_MODULE_EXPORT_NAME("homebrew_functionpatcher");
WUMS_MODULE_SKIP_INIT_FINI(); WUMS_MODULE_SKIP_INIT_FINI();
#ifdef DEBUG
uint32_t moduleLogInit = false; uint32_t moduleLogInit = false;
uint32_t cafeLogInit = false; uint32_t cafeLogInit = false;
uint32_t udpLogInit = false; uint32_t udpLogInit = false;
#endif
WUMS_APPLICATION_STARTS() { WUMS_APPLICATION_STARTS() {
#ifdef DEBUG #ifdef DEBUG
@ -22,7 +24,6 @@ WUMS_APPLICATION_STARTS() {
} }
#endif // DEBUG #endif // DEBUG
FunctionPatcherResetLibHandles(); FunctionPatcherResetLibHandles();
} }
WUMS_APPLICATION_REQUESTS_EXIT() { WUMS_APPLICATION_REQUESTS_EXIT() {