mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-07-28 11:18:04 +03:00
Compare commits
No commits in common. "17ccf2a8bbd0860302dfb9f710f223c0412fa514" and "03fc131e2e41bd52cf481657f62e250bb61280b8" have entirely different histories.
17ccf2a8bb
...
03fc131e2e
@ -24,11 +24,8 @@
|
||||
#include <bc/Debug.hpp>
|
||||
#include <common/Prop.hpp>
|
||||
#include <common/Time.hpp>
|
||||
#include <common/Processor.hpp>
|
||||
#include <storm/Error.hpp>
|
||||
#include <storm/Log.hpp>
|
||||
#include <storm/Registry.hpp>
|
||||
#include <storm/Option.hpp>
|
||||
#include <bc/os/Path.hpp>
|
||||
#include <bc/File.hpp>
|
||||
#include <cstdio>
|
||||
@ -631,25 +628,18 @@ void CommonMain() {
|
||||
// TODO:
|
||||
// SErrCatchUnhandledExceptions();
|
||||
// OsSystemInitialize("Blizzard Entertainment World of Warcraft", 0);
|
||||
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();
|
||||
// int option = 1;
|
||||
// StormSetOption(10, &option, sizeof(option));
|
||||
// StormSetOption(11, &option, sizeof(option));
|
||||
// OsSystemEnableCpuLog();
|
||||
|
||||
// SetPaths() moved into InitializeGlobal()
|
||||
|
||||
uint32_t sendErrorLogs = 1;
|
||||
if (!SRegLoadValue("World of Warcraft\\Client", "SendErrorLogs", 0, &sendErrorLogs)) {
|
||||
sendErrorLogs = 1;
|
||||
SRegSaveValue("World of Warcraft\\Client", "SendErrorLogs", 0, sendErrorLogs);
|
||||
}
|
||||
// int 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);
|
||||
|
@ -21,22 +21,13 @@ int32_t Script_IsShiftKeyDown(lua_State* L) {
|
||||
|
||||
int32_t Script_GetBuildInfo(lua_State* L) {
|
||||
auto szVersion = FrameScript_GetText("VERSION", -1, GENDER_NOT_APPLICABLE);
|
||||
|
||||
#if defined(NDEBUG)
|
||||
#if defined(WHOA_BUILD_ASSERTIONS)
|
||||
auto szVersionType = FrameScript_GetText("ASSERTIONS_ENABLED_BUILD", -1, GENDER_NOT_APPLICABLE);
|
||||
#else
|
||||
auto szVersionType = FrameScript_GetText("RELEASE_BUILD", -1, GENDER_NOT_APPLICABLE);
|
||||
#endif
|
||||
#else
|
||||
auto szVersionType = FrameScript_GetText("DEBUG_BUILD", -1, GENDER_NOT_APPLICABLE);
|
||||
#endif
|
||||
|
||||
lua_pushstring(L, szVersion);
|
||||
lua_pushstring(L, szVersionType);
|
||||
lua_pushstring(L, WHOA_VERSION_MAJOR "." WHOA_VERSION_MINOR "." WHOA_VERSION_PATCH);
|
||||
lua_pushstring(L, WHOA_VERSION_BUILD);
|
||||
lua_pushstring(L, __DATE__);
|
||||
lua_pushstring(L, "3.3.5");
|
||||
lua_pushstring(L, "12340");
|
||||
lua_pushstring(L, "Jun 24 2010");
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user