Patch menu
Jeffrey Pfau jeffrey@endrift.com
Fri, 24 Oct 2014 02:23:48 -0700
2 files changed,
9 insertions(+),
0 deletions(-)
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -131,6 +131,13 @@ m_controller->loadBIOS(filename);
} } +void Window::selectPatch() { + QString filename = QFileDialog::getOpenFileName(this, tr("Select patch"), QString(), tr("Patches (*.ips *.ups)")); + if (!filename.isEmpty()) { + m_controller->loadPatch(filename); + } +} + #ifdef USE_GDB_STUB void Window::gdbOpen() { if (!m_gdbController) {@@ -250,6 +257,7 @@ menubar->clear();
QMenu* fileMenu = menubar->addMenu(tr("&File")); fileMenu->addAction(tr("Load &ROM..."), this, SLOT(selectROM()), QKeySequence::Open); fileMenu->addAction(tr("Load &BIOS..."), this, SLOT(selectBIOS())); + fileMenu->addAction(tr("Load &patch..."), this, SLOT(selectPatch())); fileMenu->addSeparator();
M
src/platform/qt/Window.h
→
src/platform/qt/Window.h
@@ -42,6 +42,7 @@
public slots: void selectROM(); void selectBIOS(); + void selectPatch(); void toggleFullScreen(); #ifdef USE_GDB_STUB