From 7b307b97d5d6e6f12e86af16b819874eff0f776a Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Mon, 13 Jan 2014 17:56:55 +0000 Subject: [PATCH] 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. --- src/backend/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/game.cpp b/src/backend/game.cpp index 56979edd..2b85a09f 100644 --- a/src/backend/game.cpp +++ b/src/backend/game.cpp @@ -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();