summaryrefslogtreecommitdiffstats
path: root/src/ui/studio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/studio.cpp')
-rw-r--r--src/ui/studio.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/studio.cpp b/src/ui/studio.cpp
index 93fd050..efdbbbc 100644
--- a/src/ui/studio.cpp
+++ b/src/ui/studio.cpp
@@ -1546,7 +1546,10 @@ std::string CStudio::SearchDirectory(bool bCreate, bool physfsReady)
std::string dir2 = dir;
if(physfsReady) {
- boost::replace_all(dir2, CResourceManager::GetSaveLocation()+"/", "");
+ std::string savedir = CResourceManager::GetSaveLocation()+"/";
+ boost::replace_all(dir2, "\\", "/");
+ boost::replace_all(savedir, "\\", "/");
+ boost::replace_all(dir2, savedir, "");
}
return dir2;
}