mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
fix FS_FOpenFileWrite, also make FS_FOpenFile{Write,Append} open in binary mode
This commit is contained in:
parent
f5a44ff5ae
commit
662229a568
1 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,7 @@ FS_FOpenFileAppend(fsHandle_t *handle)
|
|||
|
||||
Com_sprintf(path, sizeof(path), "%s/%s", fs_gamedir, handle->name);
|
||||
|
||||
handle->file = fopen(path, "a");
|
||||
handle->file = fopen(path, "ab");
|
||||
|
||||
if (handle->file)
|
||||
{
|
||||
|
@ -377,7 +377,7 @@ FS_FOpenFileWrite(fsHandle_t *handle)
|
|||
|
||||
Com_sprintf(path, sizeof(path), "%s/%s", fs_gamedir, handle->name);
|
||||
|
||||
if ((handle->file = fopen(path, "w")) == NULL)
|
||||
if ((handle->file = fopen(path, "wb")) != NULL)
|
||||
{
|
||||
if (fs_debug->value)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue