Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-16 16:34:15 +0000
committerStijn Buys <ingar@osirion.org>2008-10-16 16:34:15 +0000
commit1a28393dabf4f4696bf433ddde52e7a25253c955 (patch)
tree4d4fa4034f30fc882a78ab6ea148a32e83b9e88c /src/filesystem
parent1e0df536c2fae85c317ce9c3cc17603d5f98c911 (diff)
various user interface related updates
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()