mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
pergameconfig : create directory if not exists
This commit is contained in:
parent
3e0c356b0b
commit
e153df4d5b
1 changed files with 4 additions and 0 deletions
|
@ -230,6 +230,10 @@ void GameViewer::ConfigureGame(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
long i = GetFirstSelected();
|
long i = GetFirstSelected();
|
||||||
if (i < 0) return;
|
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");
|
SettingsDialog(this, fs::get_config_dir() + "data/" + m_game_data[i].root + "/config.yml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue