mirror of https://github.com/mgba-emu/mgba.git
Qt: Add "Step backwards" item for single increment rewind
This commit is contained in:
parent
dee394f10f
commit
af19f5bc45
1
CHANGES
1
CHANGES
|
@ -7,6 +7,7 @@ Features:
|
|||
- More shortcuts are editable (e.g. quick save/load, solar sensor)
|
||||
- Rewind now shows the frame after rewinding
|
||||
- Import/Export of GameShark/Action Replay snapshots
|
||||
- Add "Step backwards" item for single increment rewind
|
||||
Bugfixes:
|
||||
- GBA: Fix timers not updating timing when writing to only the reload register
|
||||
- All: Fix sanitize-deb script not cleaning up after itself
|
||||
|
|
|
@ -718,6 +718,14 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
m_gameActions.append(rewind);
|
||||
addControlledAction(emulationMenu, rewind, "rewind");
|
||||
|
||||
QAction* frameRewind = new QAction(tr("Step backwards"), emulationMenu);
|
||||
frameRewind->setShortcut(tr("Ctrl+B"));
|
||||
connect(frameRewind, &QAction::triggered, [this] () {
|
||||
m_controller->rewind(1);
|
||||
});
|
||||
m_gameActions.append(frameRewind);
|
||||
addControlledAction(emulationMenu, frameRewind, "frameRewind");
|
||||
|
||||
ConfigOption* videoSync = m_config->addOption("videoSync");
|
||||
videoSync->addBoolean(tr("Sync to &video"), emulationMenu);
|
||||
videoSync->connect([this](const QVariant& value) {
|
||||
|
|
Loading…
Reference in New Issue