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:
WrinklyNinja
2014-01-13 17:56:55 +00:00
parent 91b548cc11
commit 7b307b97d5
+1 -1
View File
@@ -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();