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