all repos — mgba @ 1a09f93b2795d2d2a0281c9cb3c3ccf9f875751b

mGBA Game Boy Advance Emulator

Allow videos to be recorded from when a ROM is loaded, and end when a ROM is shut down
Jeffrey Pfau jeffrey@endrift.com
Mon, 27 Oct 2014 00:17:29 -0700
commit

1a09f93b2795d2d2a0281c9cb3c3ccf9f875751b

parent

b51e72fcab27f8ca85c3c535cd1f06077bb59bae

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -150,6 +150,9 @@ if (!m_videoView) {

m_videoView = new VideoView(); connect(m_videoView, SIGNAL(recordingStarted(GBAAVStream*)), m_controller, SLOT(setAVStream(GBAAVStream*))); connect(m_videoView, SIGNAL(recordingStopped()), m_controller, SLOT(clearAVStream()), Qt::DirectConnection); + connect(m_controller, SIGNAL(gameStopped(GBAThread*)), m_videoView, SLOT(stopRecording())); + connect(m_controller, SIGNAL(gameStopped(GBAThread*)), m_videoView, SLOT(close())); + connect(this, SIGNAL(shutdown()), m_videoView, SLOT(close())); } m_videoView->show(); }

@@ -323,7 +326,6 @@ #ifdef USE_FFMPEG

QAction* recordOutput = new QAction(tr("Record output..."), fileMenu); recordOutput->setShortcut(tr("F11")); connect(recordOutput, SIGNAL(triggered()), this, SLOT(openVideoWindow())); - m_gameActions.append(recordOutput); fileMenu->addAction(recordOutput); #endif