Qt: add savestate manager dialog

This commit is contained in:
Megamouse 2025-01-23 22:06:54 +01:00
parent e2bbaa2430
commit bd1ebb7a10
11 changed files with 1074 additions and 84 deletions

View file

@ -3,6 +3,7 @@
#include "vfs_dialog.h"
#include "save_manager_dialog.h"
#include "trophy_manager_dialog.h"
#include "savestate_manager_dialog.h"
#include "user_manager_dialog.h"
#include "screenshot_manager_dialog.h"
#include "kernel_explorer.h"
@ -3054,6 +3055,14 @@ void main_window::CreateConnects()
trop_manager->show();
});
connect(ui->actionManage_Savestates, &QAction::triggered, this, [this]
{
savestate_manager_dialog* manager = new savestate_manager_dialog(m_gui_settings, m_game_list_frame->GetGameInfo());
connect(this, &main_window::RequestDialogRepaint, manager, &savestate_manager_dialog::HandleRepaintUiRequest);
connect(manager, &savestate_manager_dialog::RequestBoot, this, [this](const std::string& path) { Boot(path, "", true); });
manager->show();
});
connect(ui->actionManage_Skylanders_Portal, &QAction::triggered, this, [this]
{
skylander_dialog* sky_diag = skylander_dialog::get_dlg(this);