From 17ccf2a8bbd0860302dfb9f710f223c0412fa514 Mon Sep 17 00:00:00 2001 From: superp00t Date: Tue, 15 Apr 2025 00:50:40 -0400 Subject: [PATCH] feat(client): uncomment some now-implemented functions calls in CommonMain, enable OutputDebugString logging for SLog --- src/client/Client.cpp | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 7e936ad..1c3b92c 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -24,8 +24,11 @@ #include #include #include +#include #include #include +#include +#include #include #include #include @@ -628,18 +631,25 @@ void CommonMain() { // TODO: // SErrCatchUnhandledExceptions(); // OsSystemInitialize("Blizzard Entertainment World of Warcraft", 0); - // int option = 1; - // StormSetOption(10, &option, sizeof(option)); - // StormSetOption(11, &option, sizeof(option)); - // OsSystemEnableCpuLog(); + int32_t option = 1; + StormSetOption(10, &option, sizeof(option)); + StormSetOption(11, &option, sizeof(option)); + + // QoL: enable debug logs +#if !defined(NDEBUG) + option = 1; + StormSetOption(5, &option, sizeof(option)); +#endif + + OsSystemEnableCpuLog(); // SetPaths() moved into InitializeGlobal() - // int sendErrorLogs = 1; - // if (!SRegLoadValue("World of Warcraft\\Client", "SendErrorLogs", 0, &sendErrorLogs)) { - // sendErrorLogs = 1; - // SRegSaveValue("World of Warcraft\\Client", "SendErrorLogs", 0, sendErrorLogs); - // } + uint32_t sendErrorLogs = 1; + if (!SRegLoadValue("World of Warcraft\\Client", "SendErrorLogs", 0, &sendErrorLogs)) { + sendErrorLogs = 1; + SRegSaveValue("World of Warcraft\\Client", "SendErrorLogs", 0, sendErrorLogs); + } // SErrSetLogTitleString("World of WarCraft (build 12340)"); // SErrSetLogTitleCallback(WowLogHeader);