mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(glue): implement update realm list
This commit is contained in:
parent
780de91468
commit
41554f32b4
4 changed files with 88 additions and 1 deletions
|
|
@ -58,6 +58,14 @@ ClientServices* ClientServices::GetInstance() {
|
|||
return ClientServices::s_instance;
|
||||
}
|
||||
|
||||
REALM_INFO* ClientServices::GetRealmInfoByIndex(int32_t index) {
|
||||
if (index >= ClientServices::GetInstance()->m_realmList.Count()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return &ClientServices::GetInstance()->m_realmList[index];
|
||||
}
|
||||
|
||||
const char* ClientServices::GetSelectedRealmName() {
|
||||
if (!ClientServices::s_realmNameVar) {
|
||||
ClientServices::s_realmNameVar = CVar::Register(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue