mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(client): uncomment some now-implemented functions calls in CommonMain, enable OutputDebugString logging for SLog
This commit is contained in:
parent
27c2ecece8
commit
17ccf2a8bb
1 changed files with 19 additions and 9 deletions
|
|
@ -24,8 +24,11 @@
|
||||||
#include <bc/Debug.hpp>
|
#include <bc/Debug.hpp>
|
||||||
#include <common/Prop.hpp>
|
#include <common/Prop.hpp>
|
||||||
#include <common/Time.hpp>
|
#include <common/Time.hpp>
|
||||||
|
#include <common/Processor.hpp>
|
||||||
#include <storm/Error.hpp>
|
#include <storm/Error.hpp>
|
||||||
#include <storm/Log.hpp>
|
#include <storm/Log.hpp>
|
||||||
|
#include <storm/Registry.hpp>
|
||||||
|
#include <storm/Option.hpp>
|
||||||
#include <bc/os/Path.hpp>
|
#include <bc/os/Path.hpp>
|
||||||
#include <bc/File.hpp>
|
#include <bc/File.hpp>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
@ -628,18 +631,25 @@ void CommonMain() {
|
||||||
// TODO:
|
// TODO:
|
||||||
// SErrCatchUnhandledExceptions();
|
// SErrCatchUnhandledExceptions();
|
||||||
// OsSystemInitialize("Blizzard Entertainment World of Warcraft", 0);
|
// OsSystemInitialize("Blizzard Entertainment World of Warcraft", 0);
|
||||||
// int option = 1;
|
int32_t option = 1;
|
||||||
// StormSetOption(10, &option, sizeof(option));
|
StormSetOption(10, &option, sizeof(option));
|
||||||
// StormSetOption(11, &option, sizeof(option));
|
StormSetOption(11, &option, sizeof(option));
|
||||||
// OsSystemEnableCpuLog();
|
|
||||||
|
// QoL: enable debug logs
|
||||||
|
#if !defined(NDEBUG)
|
||||||
|
option = 1;
|
||||||
|
StormSetOption(5, &option, sizeof(option));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
OsSystemEnableCpuLog();
|
||||||
|
|
||||||
// SetPaths() moved into InitializeGlobal()
|
// SetPaths() moved into InitializeGlobal()
|
||||||
|
|
||||||
// int sendErrorLogs = 1;
|
uint32_t sendErrorLogs = 1;
|
||||||
// if (!SRegLoadValue("World of Warcraft\\Client", "SendErrorLogs", 0, &sendErrorLogs)) {
|
if (!SRegLoadValue("World of Warcraft\\Client", "SendErrorLogs", 0, &sendErrorLogs)) {
|
||||||
// sendErrorLogs = 1;
|
sendErrorLogs = 1;
|
||||||
// SRegSaveValue("World of Warcraft\\Client", "SendErrorLogs", 0, sendErrorLogs);
|
SRegSaveValue("World of Warcraft\\Client", "SendErrorLogs", 0, sendErrorLogs);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// SErrSetLogTitleString("World of WarCraft (build 12340)");
|
// SErrSetLogTitleString("World of WarCraft (build 12340)");
|
||||||
// SErrSetLogTitleCallback(WowLogHeader);
|
// SErrSetLogTitleCallback(WowLogHeader);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue