mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
fix(console): createDisposition is not a bitfield but an enum
This commit is contained in:
parent
0f04abb9de
commit
25063fa34a
1 changed files with 2 additions and 2 deletions
|
|
@ -245,11 +245,11 @@ int32_t CVar::Load(HOSFILE file) {
|
|||
int32_t CVar::Load(const char* filename) {
|
||||
char path[STORM_MAX_PATH] = {0};
|
||||
|
||||
auto file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_CREATE_NEW | OS_CREATE_ALWAYS, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
auto file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_OPEN_EXISTING, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
|
||||
if (file == HOSFILE_INVALID) {
|
||||
SStrPrintf(path, STORM_MAX_PATH, "WTF\\%s", filename);
|
||||
file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_CREATE_NEW | OS_CREATE_ALWAYS, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_OPEN_EXISTING, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
if (file == HOSFILE_INVALID) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue