Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesystem')
-rw-r--r--src/filesystem/diskfile.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filesystem/diskfile.cc b/src/filesystem/diskfile.cc
index 11070f2..a01a327 100644
--- a/src/filesystem/diskfile.cc
+++ b/src/filesystem/diskfile.cc
@@ -36,7 +36,7 @@ bool DiskFile::open(const char *filename)
file_path.append(moddir);
fn = file_path;
fn.append(filename);
- diskfile_handle = fopen(fn.c_str(), "r");
+ diskfile_handle = fopen(fn.c_str(), "rb");
if (diskfile_handle)
return true;
@@ -45,7 +45,7 @@ bool DiskFile::open(const char *filename)
file_path.append(moddir);
fn = file_path;
fn.append(filename);
- diskfile_handle = fopen(fn.c_str(), "r");
+ diskfile_handle = fopen(fn.c_str(), "rb");
if (diskfile_handle)
return true;
}
@@ -54,7 +54,7 @@ bool DiskFile::open(const char *filename)
file_path.append(basedir);
fn = file_path;
fn.append(filename);
- diskfile_handle = fopen(fn.c_str(), "r");
+ diskfile_handle = fopen(fn.c_str(), "rb");
if (diskfile_handle)
return true;
@@ -63,7 +63,7 @@ bool DiskFile::open(const char *filename)
file_path.append(basedir);
fn = file_path;
fn.append(filename);
- diskfile_handle = fopen(fn.c_str(), "r");
+ diskfile_handle = fopen(fn.c_str(), "rb");
if (diskfile_handle)
return true;