From 5eaf95c32ffdb46843e8fb242036d9bc46292d09 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Thu, 26 Jun 2014 17:26:49 +0100 Subject: [PATCH] Fixed knock-on errors during repo clone. --- src/backend/network.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/network.cpp b/src/backend/network.cpp index 39ded2a0..53959f6b 100644 --- a/src/backend/network.cpp +++ b/src/backend/network.cpp @@ -210,6 +210,8 @@ namespace loot { // temporarily, and move its contents back in afterwards, skipping any that then conflict. BOOST_LOG_TRIVIAL(trace) << "Repo path not empty, renaming folder."; fs::rename(repo_path, repo_path.string() + ".temp"); + // Recreate the game folder so that we don't inadvertently cause any other errors (everything past LOOT init assumes it exists). + fs::create_directory(repo_path); wasEmpty = false; }