feat(client): add account name CVar (#117)

This commit is contained in:
Tristan 'Natrist' Cormier 2025-10-20 21:05:08 -04:00 committed by GitHub
parent 5857a66810
commit cb35132807
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include <common/Prop.hpp> #include <common/Prop.hpp>
#include <storm/Error.hpp> #include <storm/Error.hpp>
CVar* Client::g_accountNameVar;
CVar* Client::g_accountListVar; CVar* Client::g_accountListVar;
HEVENTCONTEXT Client::g_clientEventContext; HEVENTCONTEXT Client::g_clientEventContext;
@ -63,6 +64,18 @@ void ClientInitializeGame(uint32_t mapId, C3Vector position) {
void ClientMiscInitialize() { void ClientMiscInitialize() {
// TODO // TODO
Client::g_accountNameVar = CVar::Register(
"accountName",
"Saved account name",
0x40,
"",
nullptr,
GAME,
false,
nullptr,
false
);
Client::g_accountListVar = CVar::Register( Client::g_accountListVar = CVar::Register(
"accountList", "accountList",
"List of wow accounts for saved Blizzard account", "List of wow accounts for saved Blizzard account",

View File

@ -7,6 +7,7 @@
class CVar; class CVar;
namespace Client { namespace Client {
extern CVar* g_accountNameVar;
extern CVar* g_accountListVar; extern CVar* g_accountListVar;
extern HEVENTCONTEXT g_clientEventContext; extern HEVENTCONTEXT g_clientEventContext;
} }