mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
parent
3bfe17a14f
commit
ee8fecea21
2 changed files with 19 additions and 0 deletions
|
@ -69,10 +69,12 @@ void GameViewer::InitPopupMenu()
|
||||||
m_popup->Append(boot_item);
|
m_popup->Append(boot_item);
|
||||||
m_popup->Append(1, _T("Configure"));
|
m_popup->Append(1, _T("Configure"));
|
||||||
m_popup->Append(2, _T("Remove Game"));
|
m_popup->Append(2, _T("Remove Game"));
|
||||||
|
m_popup->Append(3, _T("Remove Custom Configuration"));
|
||||||
|
|
||||||
Bind(wxEVT_MENU, &GameViewer::BootGame, this, 0);
|
Bind(wxEVT_MENU, &GameViewer::BootGame, this, 0);
|
||||||
Bind(wxEVT_MENU, &GameViewer::ConfigureGame, this, 1);
|
Bind(wxEVT_MENU, &GameViewer::ConfigureGame, this, 1);
|
||||||
Bind(wxEVT_MENU, &GameViewer::RemoveGame, this, 2);
|
Bind(wxEVT_MENU, &GameViewer::RemoveGame, this, 2);
|
||||||
|
Bind(wxEVT_MENU, &GameViewer::RemoveGameConfig, this, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameViewer::DoResize(wxSize size)
|
void GameViewer::DoResize(wxSize size)
|
||||||
|
@ -241,6 +243,22 @@ void GameViewer::RemoveGame(wxCommandEvent& event)
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GameViewer::RemoveGameConfig(wxCommandEvent& event)
|
||||||
|
{
|
||||||
|
long i = GetFirstSelected();
|
||||||
|
if (i < 0) return;
|
||||||
|
|
||||||
|
if (fs::exists(fs::get_config_dir() + "data/" + m_game_data[i].serial + "/config.yml"))
|
||||||
|
{
|
||||||
|
if (wxMessageBox("Delete custom game configuration?", "Confirm Delete", wxYES_NO | wxNO_DEFAULT) == wxYES)
|
||||||
|
{
|
||||||
|
fs::remove_file(fs::get_config_dir() + "data/" + m_game_data[i].serial + "/config.yml");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
ColumnsArr::ColumnsArr()
|
ColumnsArr::ColumnsArr()
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
|
|
@ -87,6 +87,7 @@ public:
|
||||||
void BootGame(wxCommandEvent& event);
|
void BootGame(wxCommandEvent& event);
|
||||||
void ConfigureGame(wxCommandEvent& event);
|
void ConfigureGame(wxCommandEvent& event);
|
||||||
void RemoveGame(wxCommandEvent& event);
|
void RemoveGame(wxCommandEvent& event);
|
||||||
|
void RemoveGameConfig(wxCommandEvent& event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void DClick(wxListEvent& event);
|
virtual void DClick(wxListEvent& event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue