From d6de5b56ec01bf20cb507ea66afccc2d4a1223a9 Mon Sep 17 00:00:00 2001 From: superp00t Date: Sat, 16 Dec 2023 20:28:23 -0500 Subject: [PATCH] fix(console): use InternalSet() when setting the launch value of CVar gxApi --- src/console/Device.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/console/Device.cpp b/src/console/Device.cpp index 9d2d726..ad3402d 100644 --- a/src/console/Device.cpp +++ b/src/console/Device.cpp @@ -297,7 +297,9 @@ void ConsoleDeviceInitialize(const char* title) { } } - s_cvGxApi->Set(g_gxApiNames[api], true, false, false, true); + // Set internally (CVar value reflects the current gxApi at launch), + // this will not Set() as CVar gxApi is latched + s_cvGxApi->InternalSet(g_gxApiNames[api], true, false, false, true); CGxDevice* device = GxDevCreate(api, OsWindowProc, format);