mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-11 17:04:00 +03:00
feat(client): add account name CVar (#117)
This commit is contained in:
1 parent
5857a66810
commit
cb35132807
2 files changed
+14
No files matched your search
@@ -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",
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
class CVar;
|
||||
|
||||
namespace Client {
|
||||
extern CVar* g_accountNameVar;
|
||||
extern CVar* g_accountListVar;
|
||||
extern HEVENTCONTEXT g_clientEventContext;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user