1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-02-01 04:51:49 +01:00

pergameconfig : create directory if not exists

This commit is contained in:
georgemoralis 2017-02-24 13:05:42 +02:00 committed by Ivan
parent 3e0c356b0b
commit e153df4d5b

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");
}