core/dumping: Allow format/encoder selection+configuration

The ParamPackage got modified so that we can use range-based for on it
This commit is contained in:
zhupengfei 2020-01-29 14:54:39 +08:00
parent 3c6765e87c
commit 016f8be0b8
No known key found for this signature in database
GPG key ID: DD129E108BD09378
8 changed files with 86 additions and 32 deletions

View file

@ -976,7 +976,7 @@ void GMainWindow::BootGame(const QString& filename) {
Layout::FramebufferLayout layout{
Layout::FrameLayoutFromResolutionScale(VideoCore::GetResolutionScaleFactor())};
Core::System::GetInstance().VideoDumper().StartDumping(video_dumping_path.toStdString(),
"webm", layout);
layout);
video_dumping_on_start = false;
video_dumping_path.clear();
}
@ -1815,7 +1815,7 @@ void GMainWindow::OnStartVideoDumping() {
if (emulation_running) {
Layout::FramebufferLayout layout{
Layout::FrameLayoutFromResolutionScale(VideoCore::GetResolutionScaleFactor())};
Core::System::GetInstance().VideoDumper().StartDumping(path.toStdString(), "webm", layout);
Core::System::GetInstance().VideoDumper().StartDumping(path.toStdString(), layout);
} else {
video_dumping_on_start = true;
video_dumping_path = path;