From 85cd59c5851cad5ed23990b19be71369d99f9472 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Mon, 30 Mar 2020 14:07:02 +0400 Subject: [PATCH] HLE: Add more debug functions --- Source/Core/Core/HLE/HLE.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HLE/HLE.cpp b/Source/Core/Core/HLE/HLE.cpp index 3ade0d1096..0f666ca396 100644 --- a/Source/Core/Core/HLE/HLE.cpp +++ b/Source/Core/Core/HLE/HLE.cpp @@ -42,7 +42,7 @@ struct SPatch }; // clang-format off -constexpr std::array OSPatches{{ +constexpr std::array OSPatches{{ // Placeholder, OSPatches[0] is the "non-existent function" index {"FAKE_TO_SKIP_0", HLE_Misc::UnimplementedFunction, HookType::Replace, HookFlag::Generic}, @@ -58,6 +58,7 @@ constexpr std::array OSPatches{{ {"OSReport", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, {"DEBUGPrint", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, {"WUD_DEBUGPrint", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, + {"__DSP_debug_printf", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, {"vprintf", HLE_OS::HLE_GeneralDebugVPrint, HookType::Start, HookFlag::Debug}, {"printf", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, {"vdprintf", HLE_OS::HLE_LogVDPrint, HookType::Start, HookFlag::Debug}, @@ -66,6 +67,7 @@ constexpr std::array OSPatches{{ {"fprintf", HLE_OS::HLE_LogFPrint, HookType::Start, HookFlag::Debug}, {"nlPrintf", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, {"DWC_Printf", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, + {"RANK_Printf", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, {"puts", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, // gcc-optimized printf? {"___blank", HLE_OS::HLE_GeneralDebugPrint, HookType::Start, HookFlag::Debug}, // used for early init things (normally) {"__write_console", HLE_OS::HLE_write_console, HookType::Start, HookFlag::Debug}, // used by sysmenu (+more?)