mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-15 02:29:30 +03:00
Merge pull request #95 from kichikuou/windows-fix
Windows: Fix read_save_file
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ static cJSON *read_save_file(const char *filename)
|
||||
char *buf;
|
||||
char *path = savedir_path(filename);
|
||||
|
||||
if (!(f = file_open_utf8(path, "r"))) {
|
||||
if (!(f = file_open_utf8(path, "rb"))) {
|
||||
WARNING("Failed to open save file: %s: %s", display_utf0(filename), strerror(errno));
|
||||
free(path);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user