GUI: Add recent games menu (#2843)

* add recent games menu

* remove invalid paths from list

* push InvalidRecentAction into BootRecentAction

* disable actions on boot
disable clear recent on freeze recent

* fix gamelist games not booting on recent list

* minor fix for list disable error
This commit is contained in:
Megamouse 2017-06-08 14:52:18 +02:00 committed by Ani
parent 0f433ea882
commit 6cb7a17814
5 changed files with 260 additions and 2 deletions

View file

@ -345,6 +345,7 @@ void game_list_frame::doubleClickedSlot(const QModelIndex& index)
{
const std::string& path = Emu.GetGameDir() + m_game_data[i].root;
emit RequestIconPathSet(path);
emit RequestAddRecentGame(qstr(path), qstr("[" + m_game_data[i].serial + "] " + m_game_data[i].name));
Emu.Stop();
@ -438,6 +439,7 @@ void game_list_frame::Boot(int row)
{
const std::string& path = Emu.GetGameDir() + m_game_data[row].root;
emit RequestIconPathSet(path);
emit RequestAddRecentGame(qstr(path), qstr("[" + m_game_data[row].serial + "] " + m_game_data[row].name));
Emu.Stop();