mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(console): use correct WTF\ alternate path when opening cvar
This commit is contained in:
parent
25063fa34a
commit
0193f00bbc
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ int32_t CVar::Load(const char* filename) {
|
||||||
|
|
||||||
if (file == HOSFILE_INVALID) {
|
if (file == HOSFILE_INVALID) {
|
||||||
SStrPrintf(path, STORM_MAX_PATH, "WTF\\%s", filename);
|
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) {
|
if (file == HOSFILE_INVALID) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue