mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Changed conditions for creating BOSS game folder.
Now only create a folder if the BOSS folder already exists, which is always true for when running BOSS, but may not be true when running BAPI.
This commit is contained in:
@@ -412,7 +412,7 @@ namespace boss {
|
||||
void Game::CreateBOSSGameFolder() {
|
||||
//Make sure that the BOSS game path exists.
|
||||
try {
|
||||
if (!fs::exists(g_path_local / bossFolderName))
|
||||
if (fs::exists(g_path_local) && !fs::exists(g_path_local / bossFolderName))
|
||||
fs::create_directory(g_path_local / bossFolderName);
|
||||
} catch (fs::filesystem_error& e) {
|
||||
BOOST_LOG_TRIVIAL(error) << "Could not create BOSS folder for game. Details: " << e.what();
|
||||
|
||||
Reference in New Issue
Block a user