Use fopen with binary mode everywhere (for Windows compat)
This commit is contained in:
parent
f7a3e3c5d2
commit
5c3f4b905a
4 changed files with 6 additions and 6 deletions
|
@ -178,7 +178,7 @@ static bool writeBindings(const BDescVec &d, const std::string &dir,
|
|||
char path[1024];
|
||||
buildPath(dir, rgssVersion, path, sizeof(path));
|
||||
|
||||
FILE *f = fopen(path, "w");
|
||||
FILE *f = fopen(path, "wb");
|
||||
|
||||
if (!f)
|
||||
return false;
|
||||
|
@ -263,7 +263,7 @@ static bool readBindings(BDescVec &out, const std::string &dir,
|
|||
char path[1024];
|
||||
buildPath(dir, rgssVersion, path, sizeof(path));
|
||||
|
||||
FILE *f = fopen(path, "r");
|
||||
FILE *f = fopen(path, "rb");
|
||||
|
||||
if (!f)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue