Fix LOOT game folder creation.

When the LOOT local app data folder doesn't exist, it should also be
created.
This commit is contained in:
Oliver Hamlet
2015-07-12 18:37:32 +01:00
parent 1ba46f5853
commit 2953ede648
+2 -2
View File
@@ -68,8 +68,8 @@ namespace loot {
if (createFolder) {
//Make sure that the LOOT game path exists.
try {
if (fs::exists(g_path_local) && !fs::exists(g_path_local / FolderName()))
fs::create_directory(g_path_local / FolderName());
if (!fs::exists(g_path_local / FolderName()))
fs::create_directories(g_path_local / FolderName());
}
catch (fs::filesystem_error& e) {
BOOST_LOG_TRIVIAL(error) << "Could not create LOOT folder for game. Details: " << e.what();