mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
DolphinWX: properly sync EmuState and banner changes.
This commit is contained in:
parent
99b1735424
commit
f51df62344
6 changed files with 238 additions and 166 deletions
|
@ -1615,10 +1615,11 @@ void CFrame::GameListRefresh()
|
|||
wxPostEvent(m_game_list_ctrl, event);
|
||||
}
|
||||
|
||||
void CFrame::GameListRescan()
|
||||
void CFrame::GameListRescan(bool purge_cache)
|
||||
{
|
||||
wxCommandEvent event{DOLPHIN_EVT_RESCAN_GAMELIST, GetId()};
|
||||
event.SetEventObject(this);
|
||||
event.SetInt(purge_cache ? 1 : 0);
|
||||
wxPostEvent(m_game_list_ctrl, event);
|
||||
}
|
||||
|
||||
|
@ -1692,7 +1693,7 @@ void CFrame::GameListChanged(wxCommandEvent& event)
|
|||
File::Delete(filename);
|
||||
}
|
||||
// Do rescan after cache has been cleared
|
||||
GameListRescan();
|
||||
GameListRescan(true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue