mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 15:21:44 +00:00
Add an explicit fflush() when writing the config.
Yes, fclose() flushes the stream and yes, this is unnecessary. But I've seen at least two times partial written configs on Win 10. :(
This commit is contained in:
parent
f291693c59
commit
978eec1a8d
2 changed files with 3 additions and 0 deletions
|
@ -639,6 +639,8 @@ CL_WriteConfiguration(void)
|
|||
fprintf(f, "// generated by quake, do not modify\n");
|
||||
|
||||
Key_WriteBindings(f);
|
||||
|
||||
fflush(f);
|
||||
fclose(f);
|
||||
|
||||
Cvar_WriteVariables(path);
|
||||
|
|
|
@ -471,6 +471,7 @@ Cvar_WriteVariables(char *path)
|
|||
}
|
||||
}
|
||||
|
||||
fflush(f);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue