pergameconfig : create directory if not exists

This commit is contained in:
georgemoralis authored and Ivan committed 2017-02-24 16:55:27 +03:00
1 parent 3e0c356b0b
commit e153df4d5b
1 file changed
+4
+4
View File
@@ -230,6 +230,10 @@ void GameViewer::ConfigureGame(wxCommandEvent& WXUNUSED(event))
{
long i = GetFirstSelected();
if (i < 0) return;
if (!fs::exists(fs::get_config_dir() + "data/" + m_game_data[i].root))
{
fs::create_dir(fs::get_config_dir() + "data/" + m_game_data[i].root);
}
SettingsDialog(this, fs::get_config_dir() + "data/" + m_game_data[i].root + "/config.yml");
}