gsdump: add enter+dclick selection on lv + fix rd crash lifetime switch

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-03-08 15:47:18 +01:00 committed by Kojin
parent 501225c630
commit d6a671d4ae
2 changed files with 3 additions and 1 deletions

View File

@ -882,7 +882,7 @@ void SysCorePlugins::_generalclose( PluginsEnum_t pid )
void SysCorePlugins::ClosePlugin_GS()
{
if( GetMTGS().IsSelf() )
if( GetMTGS().IsSelf() || GSDump::isRunning )
_generalclose( PluginId_GS );
else
{

View File

@ -78,6 +78,7 @@ Dialogs::GSDumpDialog::GSDumpDialog(wxWindow* parent)
wxBoxSizer* gif = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* dumps_list = new wxBoxSizer(wxVERTICAL);
m_run->SetDefault();
wxArrayString rdoverrides;
rdoverrides.Add("None");
rdoverrides.Add("OGL SW");
@ -126,6 +127,7 @@ Dialogs::GSDumpDialog::GSDumpDialog(wxWindow* parent)
wxEvtHandler::Connect(wxEVT_FSWATCHER, wxFileSystemWatcherEventHandler(Dialogs::GSDumpDialog::PathChanged));
Bind(wxEVT_LIST_ITEM_SELECTED, &Dialogs::GSDumpDialog::SelectedDump, this, ID_DUMP_LIST);
Bind(wxEVT_LIST_ITEM_ACTIVATED, &Dialogs::GSDumpDialog::RunDump, this, ID_DUMP_LIST);
Bind(wxEVT_BUTTON, &Dialogs::GSDumpDialog::RunDump, this, ID_RUN_DUMP);
Bind(wxEVT_BUTTON, &Dialogs::GSDumpDialog::ToStart, this, ID_RUN_START);
Bind(wxEVT_BUTTON, &Dialogs::GSDumpDialog::StepPacket, this, ID_RUN_STEP);