From cb35132807edb9221da4f667abc9e0f08db2455e Mon Sep 17 00:00:00 2001 From: Tristan 'Natrist' Cormier Date: Mon, 20 Oct 2025 21:05:08 -0400 Subject: [PATCH] feat(client): add account name CVar (#117) --- 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; }