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.cc4
-rw-r--r--src/filesystem/filesystem.cc9
2 files changed, 10 insertions, 3 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);
diff --git a/src/filesystem/filesystem.cc b/src/filesystem/filesystem.cc
index 3404296..a8fca1d 100644
--- a/src/filesystem/filesystem.cc
+++ b/src/filesystem/filesystem.cc
@@ -153,12 +153,15 @@ void init(std::string const & basename, std::string const & modname)
// print search path
for (SearchPath::iterator path = filesystem_searchpath.begin(); path != filesystem_searchpath.end(); ++path) {
- con_print << " " << (*path) << std::endl;
+#ifdef _WIN32
+ for (size_t i = 0; i < (*path).size(); i++)
+ if ((*path)[i] == '/') (*path)[i] = '\\';
+#endif
+ con_print << " directory: " << (*path) << std::endl;
}
- con_print << " " << filesystem_searchpath.size() << " directories added to searchpath" << std::endl;
// create writedir
- con_print << " files are created in " << filesystem_writedir << std::endl;
+ con_print << " home directory: " << filesystem_writedir << std::endl;
}
void shutdown()