From 0ff098ffd85172c67f8267a35d4e00245e68204d Mon Sep 17 00:00:00 2001 From: Tristan Cormier Date: Mon, 20 Oct 2025 19:51:43 -0400 Subject: [PATCH] feat(client): add accountName CVar --- src/client/Client.cpp | 13 +++++++++++++ src/client/Client.hpp | 1 + 2 files changed, 14 insertions(+) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 61c3269..89c8924 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -21,6 +21,7 @@ #include #include +CVar* Client::g_accountNameVar; CVar* Client::g_accountListVar; HEVENTCONTEXT Client::g_clientEventContext; @@ -63,6 +64,18 @@ void ClientInitializeGame(uint32_t mapId, C3Vector position) { void ClientMiscInitialize() { // TODO + Client::g_accountNameVar = CVar::Register( + "accountName", + "Saved account name", + 0x40, + "", + nullptr, + GAME, + false, + nullptr, + false + ); + Client::g_accountListVar = CVar::Register( "accountList", "List of wow accounts for saved Blizzard account", diff --git a/src/client/Client.hpp b/src/client/Client.hpp index 0a3f10f..f6dd223 100644 --- a/src/client/Client.hpp +++ b/src/client/Client.hpp @@ -7,6 +7,7 @@ class CVar; namespace Client { + extern CVar* g_accountNameVar; extern CVar* g_accountListVar; extern HEVENTCONTEXT g_clientEventContext; }