mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(glue): handle GetServerName script function
This commit is contained in:
parent
93a0d7ee83
commit
5b9a4d240e
4 changed files with 55 additions and 1 deletions
|
|
@ -84,6 +84,10 @@ const char* ClientServices::GetSelectedRealmName() {
|
|||
return ClientServices::s_realmNameVar->GetString();
|
||||
}
|
||||
|
||||
const REALM_INFO* ClientServices::GetSelectedRealm() {
|
||||
return &ClientServices::s_selectRealmInfo;
|
||||
}
|
||||
|
||||
void ClientServices::Initialize() {
|
||||
if (!g_clientConnection) {
|
||||
auto adapterMem = SMemAlloc(sizeof(ClientRealmResponseAdapter), __FILE__, __LINE__, 0x0);
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class ClientServices : public LoginResponse {
|
|||
static ClientServices* GetInstance();
|
||||
static REALM_INFO* GetRealmInfoByIndex(int32_t index);
|
||||
static const char* GetSelectedRealmName();
|
||||
static const REALM_INFO* GetSelectedRealm();
|
||||
static void Initialize();
|
||||
static Login* LoginConnection();
|
||||
static void Logon(const char* accountName, const char* password);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue