diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-30 02:31:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-30 02:31:46 +0300 |
commit | 4210163dae7d6266923ab11f78b631173c9533e3 (patch) | |
tree | 544e2984e9dd5208043db0f0cf53e06f44c60d79 /src | |
parent | 54b82fbfa89accf8e73d116e5d8fa9e348a4cab7 (diff) | |
download | mv-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.cpp | 5 |
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. |