mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(client): use 'realmList' CVar when connecting to realm list server
This commit is contained in:
parent
9096894a21
commit
d60b85f85c
6 changed files with 148 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "console/Client.hpp"
|
||||
#include "console/Command.hpp"
|
||||
#include "console/CVar.hpp"
|
||||
|
||||
void ConsoleInitializeClientCommand() {
|
||||
ConsoleCommandInitialize();
|
||||
|
|
@ -8,5 +9,9 @@ void ConsoleInitializeClientCommand() {
|
|||
}
|
||||
|
||||
void ConsoleInitializeClientCVar(const char* a1) {
|
||||
// TODO
|
||||
CVar::Initialize(a1);
|
||||
}
|
||||
|
||||
int32_t ConsoleLoadClientCVar(const char* a1) {
|
||||
return CVar::Load(a1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
#ifndef CONSOLE_CLIENT_HPP
|
||||
#define CONSOLE_CLIENT_HPP
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
void ConsoleInitializeClientCommand();
|
||||
|
||||
void ConsoleInitializeClientCVar(const char* a1);
|
||||
|
||||
int32_t ConsoleLoadClientCVar(const char* a1);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@ bool CVGxMaximizeCallback(CVar*, const char*, const char*, void*) {
|
|||
}
|
||||
|
||||
bool CVGxResolutionCallback(CVar*, const char*, const char*, void*) {
|
||||
static C2iVector legalSizes[] = {
|
||||
{}
|
||||
}
|
||||
|
||||
// TODO
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue