mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(client): add gammar vars to ClientMiscInitialize
This commit is contained in:
parent
3784354fdf
commit
ce2ad21748
@ -25,6 +25,19 @@ CVar* Client::g_accountNameVar;
|
||||
CVar* Client::g_accountListVar;
|
||||
HEVENTCONTEXT Client::g_clientEventContext;
|
||||
|
||||
static CVar* s_desktopGammaCvar;
|
||||
static CVar* s_gammaCvar;
|
||||
|
||||
bool DesktopGammaCallback(CVar* var, const char* oldValue, const char* value, void* arg) {
|
||||
// TODO
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GammaCallback(CVar* var, const char* oldValue, const char* value, void* arg) {
|
||||
// TODO
|
||||
return true;
|
||||
}
|
||||
|
||||
void AsyncFileInitialize() {
|
||||
// TODO
|
||||
AsyncFileReadInitialize(0, 100);
|
||||
@ -90,6 +103,32 @@ void ClientMiscInitialize() {
|
||||
|
||||
// TODO
|
||||
|
||||
s_desktopGammaCvar = CVar::Register(
|
||||
"DesktopGamma",
|
||||
nullptr,
|
||||
0x0,
|
||||
"0",
|
||||
&DesktopGammaCallback,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
);
|
||||
|
||||
s_gammaCvar = CVar::Register(
|
||||
"Gamma",
|
||||
nullptr,
|
||||
0x0,
|
||||
"1.0",
|
||||
&GammaCallback,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
);
|
||||
|
||||
// TODO
|
||||
|
||||
auto showToolsVar = CVar::Register(
|
||||
"showToolsUI",
|
||||
"Display the launcher when starting the game",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user