mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user