From 1a28393dabf4f4696bf433ddde52e7a25253c955 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 16 Oct 2008 16:34:15 +0000 Subject: various user interface related updates --- src/filesystem/diskfile.cc | 4 ++++ src/filesystem/filesystem.cc | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/filesystem') 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() -- cgit v1.2.3