Fix compiling with debug logs

This commit is contained in:
Maschell
2026-03-29 12:42:20 +02:00
parent 26f2825688
commit 434bceff17
4 changed files with 6 additions and 6 deletions

View File

@@ -285,7 +285,7 @@ void PrintCapturedStackTrace(const std::span<const uint32_t> trace) {
DEBUG_FUNCTION_LINE_INFO("└────────────────────────────────────────────────────────────┘");
}
std::string hookNameToString(const wups_loader_hook_type_t type) {
const char *hookNameToString(const wups_loader_hook_type_t type) {
switch (type) {
case WUPS_LOADER_HOOK_INIT_WUT_MALLOC:
return "WUPS_LOADER_HOOK_INIT_WUT_MALLOC";

View File

@@ -171,4 +171,4 @@ std::string getModuleAndSymbolName(uint32_t addr);
void PrintCapturedStackTrace(std::span<const uint32_t> trace);
std::string hookNameToString(wups_loader_hook_type_t type);
const char *hookNameToString(wups_loader_hook_type_t type);