From d2fb788a1b20ed3cbc6e036681cee6bf6fc59e07 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 2 Feb 2016 19:28:47 +0100 Subject: [PATCH] Changed: Convert unpackTo directories to absolute directories --- code/ryzom/client/src/login_patch.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index 0ef54d85c..68b29b687 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -1121,9 +1121,9 @@ void CPatchManager::readDescFile(sint32 nVersion) std::string unpackTo = category.getUnpackTo(); - if (unpackTo.substr(0, 2) == "./") + if (unpackTo.substr(0, 1) == ".") { - unpackTo = ClientRootPath + unpackTo.substr(2); + unpackTo = CPath::makePathAbsolute(unpackTo, ClientRootPath, true); category.setUnpackTo(unpackTo); } } @@ -2402,6 +2402,7 @@ void CPatchThread::run() // Set a more explicit error message pPM->setErrorMessage(sTranslate); } + PatchOk = !bErr; Ended = true; }