mirror of
https://github.com/wiiu-env/wudd.git
synced 2024-11-29 13:14:17 +01:00
05aea5756b
- Display name/type of the partition - Block home menu when launching via HBL - Use libmocha instead of libiosuhax, which should result in a small performance boost - Improve logging - Improve memory management - Add option to abort dumps - Slightly improve .wux handling
38 lines
783 B
C
38 lines
783 B
C
#ifdef DEBUG
|
|
#include <nsysnet/_socket.h>
|
|
#include <stdint.h>
|
|
#include <whb/log_cafe.h>
|
|
#include <whb/log_module.h>
|
|
#include <whb/log_udp.h>
|
|
|
|
uint32_t moduleLogInit = false;
|
|
uint32_t cafeLogInit = false;
|
|
uint32_t udpLogInit = false;
|
|
#endif // DEBUG
|
|
|
|
void initLogging() {
|
|
#ifdef DEBUG
|
|
if (!(moduleLogInit = WHBLogModuleInit())) {
|
|
socket_lib_init();
|
|
cafeLogInit = WHBLogCafeInit();
|
|
udpLogInit = WHBLogUdpInit();
|
|
}
|
|
#endif // DEBUG
|
|
}
|
|
|
|
void deinitLogging() {
|
|
#ifdef DEBUG
|
|
if (moduleLogInit) {
|
|
WHBLogModuleDeinit();
|
|
moduleLogInit = false;
|
|
}
|
|
if (cafeLogInit) {
|
|
WHBLogCafeDeinit();
|
|
cafeLogInit = false;
|
|
}
|
|
if (udpLogInit) {
|
|
WHBLogUdpDeinit();
|
|
udpLogInit = false;
|
|
}
|
|
#endif // DEBUG
|
|
} |