From 0193f00bbcc54f468461a0bcc042bef2ffdd4213 Mon Sep 17 00:00:00 2001 From: superp00t Date: Tue, 19 Dec 2023 04:18:17 -0500 Subject: [PATCH] fix(console): use correct WTF\ alternate path when opening cvar --- src/console/CVar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console/CVar.cpp b/src/console/CVar.cpp index aa4c635..b495e77 100644 --- a/src/console/CVar.cpp +++ b/src/console/CVar.cpp @@ -249,7 +249,7 @@ int32_t CVar::Load(const char* filename) { if (file == HOSFILE_INVALID) { SStrPrintf(path, STORM_MAX_PATH, "WTF\\%s", filename); - file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_OPEN_EXISTING, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f); + file = OsCreateFile(path, OS_GENERIC_READ, 0, OS_OPEN_EXISTING, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f); if (file == HOSFILE_INVALID) { return 0; }