feat(console): add gxRefresh var to RegisterGxCVars

This commit is contained in:
fallenoak 2025-11-17 20:11:04 -06:00
parent d2af090b55
commit f2b63128d4
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -12,6 +12,7 @@ static CGxDevice* s_device;
static CVar* s_cvGxColorBits;
static CVar* s_cvGxDepthBits;
static CVar* s_cvGxMaximize;
static CVar* s_cvGxRefresh;
static CVar* s_cvGxResolution;
static CVar* s_cvGxWidescreen;
static CVar* s_cvGxWindow;
@ -36,6 +37,11 @@ bool CVGxMaximizeCallback(CVar*, const char*, const char*, void*) {
return true;
}
bool CVGxRefreshCallback(CVar*, const char*, const char*, void*) {
// TODO
return true;
}
bool CVGxResolutionCallback(CVar*, const char*, const char*, void*) {
// TODO
return true;
@ -130,7 +136,18 @@ void RegisterGxCVars() {
false
);
// TODO s_cvGxRefresh
s_cvGxRefresh = CVar::Register(
"gxRefresh",
"refresh rate",
0x1 | 0x2,
"75",
&CVGxRefreshCallback,
GRAPHICS,
false,
nullptr,
false
);
// TODO s_cvGxTripleBuffer
// TODO s_cvGxApi
// TODO s_cvGxVSync