mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-13 09:44:42 +03:00
feat(client): use 'realmList' CVar when connecting to realm list server
This commit is contained in:
1 parent
9096894a21
commit
d60b85f85c
6 files changed
+148
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user