From 495b6f613949899a50bc87a6ec9b06f3be15525c Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 26 Jul 2024 08:52:44 +0900 Subject: [PATCH] Adding hotkey patch --- hotkeys.patch | 18 ++++++++++++++++++ net.kuribo64.melonDS.yml | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 hotkeys.patch diff --git a/hotkeys.patch b/hotkeys.patch new file mode 100644 index 0000000..a209424 --- /dev/null +++ b/hotkeys.patch @@ -0,0 +1,18 @@ +diff -au1r melonDS/src/frontend/qt_sdl/main.cpp melonDS/src/frontend/qt_sdl/main.cpp +--- melonDS/src/frontend/qt_sdl/main.cpp 2023-05-06 17:27:24.822375255 +0200 ++++ melonDS/src/frontend/qt_sdl/main.cpp 2023-05-06 17:47:19.587498189 +0200 +@@ -1467,3 +1467,3 @@ + actSaveState[0] = submenu->addAction("File..."); +- actSaveState[0]->setShortcut(QKeySequence(Qt::ShiftModifier | Qt::Key_F9)); ++ actSaveState[0]->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_S)); + actSaveState[0]->setData(QVariant(0)); +@@ -1483,3 +1483,3 @@ + actLoadState[0] = submenu->addAction("File..."); +- actLoadState[0]->setShortcut(QKeySequence(Qt::Key_F9)); ++ actLoadState[0]->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_A)); + actLoadState[0]->setData(QVariant(0)); +@@ -1489,3 +1489,3 @@ + actUndoStateLoad = menu->addAction("Undo state load"); +- actUndoStateLoad->setShortcut(QKeySequence(Qt::Key_F12)); ++ actUndoStateLoad->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_8)); + connect(actUndoStateLoad, &QAction::triggered, this, &MainWindow::onUndoStateLoad); \ No newline at end of file diff --git a/net.kuribo64.melonDS.yml b/net.kuribo64.melonDS.yml index 66accc4..c6a18fb 100644 --- a/net.kuribo64.melonDS.yml +++ b/net.kuribo64.melonDS.yml @@ -35,3 +35,5 @@ modules: commit: 430de6b2702bb93faa8c2004aff3fbd084db4a1e - type: file path: net.kuribo64.melonDS.appdata.xml + - type: patch + path: hotkeys.patch