diff options
author | german77 <juangerman-13@hotmail.com> | 2021-08-07 22:45:29 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2021-08-07 22:45:29 +0200 |
commit | acce512ae80fc19a63391a097a68ab1ef6cb68f6 (patch) | |
tree | 33edd51fca500d2d851992a475064be57d5955ae /src/yuzu | |
parent | Merge pull request #6830 from ameerj/nvdec-unimpld-codec (diff) | |
download | yuzu-acce512ae80fc19a63391a097a68ab1ef6cb68f6.tar yuzu-acce512ae80fc19a63391a097a68ab1ef6cb68f6.tar.gz yuzu-acce512ae80fc19a63391a097a68ab1ef6cb68f6.tar.bz2 yuzu-acce512ae80fc19a63391a097a68ab1ef6cb68f6.tar.lz yuzu-acce512ae80fc19a63391a097a68ab1ef6cb68f6.tar.xz yuzu-acce512ae80fc19a63391a097a68ab1ef6cb68f6.tar.zst yuzu-acce512ae80fc19a63391a097a68ab1ef6cb68f6.zip |
Diffstat (limited to 'src/yuzu')
-rw-r--r-- | src/yuzu/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 9544f0fb0..5940e0cfd 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2814,8 +2814,6 @@ void GMainWindow::OnToggleFilterBar() { } void GMainWindow::OnCaptureScreenshot() { - OnPauseGame(); - const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); const auto screenshot_path = QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir)); @@ -2827,23 +2825,22 @@ void GMainWindow::OnCaptureScreenshot() { .arg(date); if (!Common::FS::CreateDir(screenshot_path.toStdString())) { - OnStartGame(); return; } #ifdef _WIN32 if (UISettings::values.enable_screenshot_save_as) { + OnPauseGame(); filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename, tr("PNG Image (*.png)")); + OnStartGame(); if (filename.isEmpty()) { - OnStartGame(); return; } } #endif render_window->CaptureScreenshot(UISettings::values.screenshot_resolution_factor.GetValue(), filename); - OnStartGame(); } // TODO: Written 2020-10-01: Remove per-game config migration code when it is irrelevant |