mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
[Qt] Add Pause/Resume/Reset
This commit is contained in:
parent
a36fd6dd57
commit
9bbaab7871
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,13 @@ MainWindow::MainWindow(QApplication* app, QWidget* parent) : QMainWindow(parent)
|
|||
auto pandaAction = fileMenu->addAction(tr("panda..."));
|
||||
connect(pandaAction, &QAction::triggered, this, &MainWindow::selectROM);
|
||||
|
||||
auto pauseAction = emulationMenu->addAction(tr("Pause"));
|
||||
auto resumeAction = emulationMenu->addAction(tr("Resume"));
|
||||
auto resetAction = emulationMenu->addAction(tr("Reset"));
|
||||
connect(pauseAction, &QAction::triggered, this, [this]() { sendMessage(EmulatorMessage{.type = MessageType::Pause}); });
|
||||
connect(resumeAction, &QAction::triggered, this, [this]() { sendMessage(EmulatorMessage{.type = MessageType::Resume}); });
|
||||
connect(resetAction, &QAction::triggered, this, [this]() { sendMessage(EmulatorMessage{.type = MessageType::Reset}); });
|
||||
|
||||
auto dumpRomFSAction = toolsMenu->addAction(tr("Dump RomFS"));
|
||||
connect(dumpRomFSAction, &QAction::triggered, this, &MainWindow::dumpRomFS);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue