|
|
@ -196,6 +196,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { |
|
|
|
|
|
|
|
|
// Setup hotkeys
|
|
|
// Setup hotkeys
|
|
|
RegisterHotkey("Main Window", "Load File", QKeySequence::Open); |
|
|
RegisterHotkey("Main Window", "Load File", QKeySequence::Open); |
|
|
|
|
|
RegisterHotkey("Main Window", "Swap Screens", QKeySequence::NextChild); |
|
|
RegisterHotkey("Main Window", "Start Emulation"); |
|
|
RegisterHotkey("Main Window", "Start Emulation"); |
|
|
LoadHotkeys(); |
|
|
LoadHotkeys(); |
|
|
|
|
|
|
|
|
@ -203,6 +204,8 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { |
|
|
SLOT(OnMenuLoadFile())); |
|
|
SLOT(OnMenuLoadFile())); |
|
|
connect(GetHotkey("Main Window", "Start Emulation", this), SIGNAL(activated()), this, |
|
|
connect(GetHotkey("Main Window", "Start Emulation", this), SIGNAL(activated()), this, |
|
|
SLOT(OnStartGame())); |
|
|
SLOT(OnStartGame())); |
|
|
|
|
|
connect(GetHotkey("Main Window", "Swap Screens", this), SIGNAL(activated()), this, |
|
|
|
|
|
SLOT(OnSwapScreens())); |
|
|
|
|
|
|
|
|
std::string window_title = |
|
|
std::string window_title = |
|
|
Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); |
|
|
Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); |
|
|
@ -550,6 +553,11 @@ void GMainWindow::OnConfigure() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::OnSwapScreens() { |
|
|
|
|
|
Settings::values.swap_screen = !Settings::values.swap_screen; |
|
|
|
|
|
Settings::Apply(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void GMainWindow::OnCreateGraphicsSurfaceViewer() { |
|
|
void GMainWindow::OnCreateGraphicsSurfaceViewer() { |
|
|
auto graphicsSurfaceViewerWidget = new GraphicsSurfaceWidget(Pica::g_debug_context, this); |
|
|
auto graphicsSurfaceViewerWidget = new GraphicsSurfaceWidget(Pica::g_debug_context, this); |
|
|
addDockWidget(Qt::RightDockWidgetArea, graphicsSurfaceViewerWidget); |
|
|
addDockWidget(Qt::RightDockWidgetArea, graphicsSurfaceViewerWidget); |
|
|
|