diff options
| author | bunnei <bunneidev@gmail.com> | 2018-11-16 20:20:41 -0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-16 20:20:41 -0800 | 
| commit | 0072275d25b10fb354e0cf2eea25f0b85f1519f2 (patch) | |
| tree | 5735c6c024008e7e67cc6dc4c5698370e959b6a4 /src/yuzu | |
| parent | 6273a7aeeedbf36a278329ce6ea462ec9343e2fd (diff) | |
| parent | 9ea8eb6b2e380a3e3ed8518bc735e6c70cf52e12 (diff) | |
Merge pull request #1678 from FearlessTobi/amiibo-hotkeys
Port citra-emu/citra#4387: "yuzu: Add hotkey for Amiibo loading"
Diffstat (limited to 'src/yuzu')
| -rw-r--r-- | src/yuzu/main.cpp | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 131ad19de..999086e7f 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -12,7 +12,7 @@  #include "core/file_sys/vfs_real.h"  #include "core/hle/service/acc/profile_manager.h" -// These are wrappers to avoid the calls to CreateDirectory and CreateFile becuase of the Windows +// These are wrappers to avoid the calls to CreateDirectory and CreateFile because of the Windows  // defines.  static FileSys::VirtualDir VfsFilesystemCreateDirectoryWrapper(      const FileSys::VirtualFilesystem& vfs, const std::string& path, FileSys::Mode mode) { @@ -308,6 +308,8 @@ void GMainWindow::InitializeHotkeys() {                                     Qt::ApplicationShortcut);      hotkey_registry.RegisterHotkey("Main Window", "Decrease Speed Limit", QKeySequence("-"),                                     Qt::ApplicationShortcut); +    hotkey_registry.RegisterHotkey("Main Window", "Load Amiibo", QKeySequence(Qt::Key_F2), +                                   Qt::ApplicationShortcut);      hotkey_registry.LoadHotkeys();      connect(hotkey_registry.GetHotkey("Main Window", "Load File", this), &QShortcut::activated, @@ -361,6 +363,12 @@ void GMainWindow::InitializeHotkeys() {                      UpdateStatusBar();                  }              }); +    connect(hotkey_registry.GetHotkey("Main Window", "Load Amiibo", this), &QShortcut::activated, +            this, [&] { +                if (ui.action_Load_Amiibo->isEnabled()) { +                    OnLoadAmiibo(); +                } +            });  }  void GMainWindow::SetDefaultUIGeometry() { | 
