summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 02:31:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 02:31:46 +0300
commit4210163dae7d6266923ab11f78b631173c9533e3 (patch)
tree544e2984e9dd5208043db0f0cf53e06f44c60d79 /src
parent54b82fbfa89accf8e73d116e5d8fa9e348a4cab7 (diff)
downloadmv-4210163dae7d6266923ab11f78b631173c9533e3.tar.gz
mv-4210163dae7d6266923ab11f78b631173c9533e3.tar.bz2
mv-4210163dae7d6266923ab11f78b631173c9533e3.tar.xz
mv-4210163dae7d6266923ab11f78b631173c9533e3.zip
Fix ":" in update dirs in windows.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 4e2cbcd7f..c16d26aa6 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1884,6 +1884,11 @@ void Client::initUpdatesDir()
mUpdatesDir = updates.str();
}
+#ifdef WIN32
+ if (mUpdatesDir.find(":") != std::string::npos)
+ replaceAll(mUpdatesDir, ":", "_");
+#endif
+
ResourceManager *const resman = ResourceManager::getInstance();
// Verify that the updates directory exists. Create if necessary.