Merge pull request #10124 from malleoz/play-recording-hotkey-support

HotkeyScheduler: add PlayRecording hotkey support
This commit is contained in:
JosJuice 2021-09-29 16:26:56 +02:00 committed by GitHub
commit c84c1ac69e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View file

@ -186,7 +186,13 @@ void HotkeyScheduler::Run()
emit ExitHotkey();
if (!Core::IsRunningAndStarted())
{
// Only check for Play Recording hotkey when no game is running
if (IsHotkey(HK_PLAY_RECORDING))
emit PlayRecording();
continue;
}
// Disc

View file

@ -47,6 +47,7 @@ signals:
void StateLoadUndo();
void StateSaveUndo();
void StartRecording();
void PlayRecording();
void ExportRecording();
void ToggleReadOnlyMode();
void ConnectWiiRemote(int id);

View file

@ -590,6 +590,7 @@ void MainWindow::ConnectHotkeys()
&MainWindow::SetStateSlot);
connect(m_hotkey_scheduler, &HotkeyScheduler::StartRecording, this,
&MainWindow::OnStartRecording);
connect(m_hotkey_scheduler, &HotkeyScheduler::PlayRecording, this, &MainWindow::OnPlayRecording);
connect(m_hotkey_scheduler, &HotkeyScheduler::ExportRecording, this,
&MainWindow::OnExportRecording);
connect(m_hotkey_scheduler, &HotkeyScheduler::ConnectWiiRemote, this,