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/diskfile.cc')
-rw-r--r--src/filesystem/diskfile.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filesystem/diskfile.cc b/src/filesystem/diskfile.cc
index 6554f1e..6def055 100644
--- a/src/filesystem/diskfile.cc
+++ b/src/filesystem/diskfile.cc
@@ -35,6 +35,10 @@ bool DiskFile::open(const char *filename)
file_name.assign(filename);
file_path.clear();
+#ifdef _WIN32
+ for (size_t i = 0; i < file_name.size(); i++)
+ if (file_name[i] == '/') file_name[i] = '\\';
+#endif
for (SearchPath::iterator path = searchpath().begin(); path != searchpath().end(); path++) {
std::string fn((*path));
fn.append(filename);