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

This commit is contained in:
Tristan 'Natrist' Cormier authored and GitHub committed 2025-10-20 20:05:08 -05:00
1 parent 5857a66810
commit cb35132807
2 files changed
+14

No files matched your search

+13
View File
@@ -21,6 +21,7 @@
#include <common/Prop.hpp>
#include <storm/Error.hpp>
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",
+1
View File
@@ -7,6 +7,7 @@
class CVar;
namespace Client {
extern CVar* g_accountNameVar;
extern CVar* g_accountListVar;
extern HEVENTCONTEXT g_clientEventContext;
}