From f2b63128d4734356cdf84a5b347113463f9ed570 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 17 Nov 2025 20:11:04 -0600 Subject: [PATCH] feat(console): add gxRefresh var to RegisterGxCVars --- src/console/Device.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/console/Device.cpp b/src/console/Device.cpp index 1c9c034..7287ed6 100644 --- a/src/console/Device.cpp +++ b/src/console/Device.cpp @@ -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