From 4210163dae7d6266923ab11f78b631173c9533e3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Aug 2012 02:31:46 +0300 Subject: Fix ":" in update dirs in windows. --- src/client.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.3-60-g2f50