Fixed knock-on errors during repo clone.

This commit is contained in:
WrinklyNinja
2014-06-26 17:26:49 +01:00
parent b1d3f566cf
commit 5eaf95c32f
+2
View File
@@ -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;
}