diff options
Diffstat (limited to '')
| -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() { | |||
| 2814 | } | 2814 | } |
| 2815 | 2815 | ||
| 2816 | void GMainWindow::OnCaptureScreenshot() { | 2816 | void GMainWindow::OnCaptureScreenshot() { |
| 2817 | OnPauseGame(); | ||
| 2818 | |||
| 2819 | const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); | 2817 | const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); |
| 2820 | const auto screenshot_path = | 2818 | const auto screenshot_path = |
| 2821 | QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir)); | 2819 | QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir)); |
| @@ -2827,23 +2825,22 @@ void GMainWindow::OnCaptureScreenshot() { | |||
| 2827 | .arg(date); | 2825 | .arg(date); |
| 2828 | 2826 | ||
| 2829 | if (!Common::FS::CreateDir(screenshot_path.toStdString())) { | 2827 | if (!Common::FS::CreateDir(screenshot_path.toStdString())) { |
| 2830 | OnStartGame(); | ||
| 2831 | return; | 2828 | return; |
| 2832 | } | 2829 | } |
| 2833 | 2830 | ||
| 2834 | #ifdef _WIN32 | 2831 | #ifdef _WIN32 |
| 2835 | if (UISettings::values.enable_screenshot_save_as) { | 2832 | if (UISettings::values.enable_screenshot_save_as) { |
| 2833 | OnPauseGame(); | ||
| 2836 | filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename, | 2834 | filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename, |
| 2837 | tr("PNG Image (*.png)")); | 2835 | tr("PNG Image (*.png)")); |
| 2836 | OnStartGame(); | ||
| 2838 | if (filename.isEmpty()) { | 2837 | if (filename.isEmpty()) { |
| 2839 | OnStartGame(); | ||
| 2840 | return; | 2838 | return; |
| 2841 | } | 2839 | } |
| 2842 | } | 2840 | } |
| 2843 | #endif | 2841 | #endif |
| 2844 | render_window->CaptureScreenshot(UISettings::values.screenshot_resolution_factor.GetValue(), | 2842 | render_window->CaptureScreenshot(UISettings::values.screenshot_resolution_factor.GetValue(), |
| 2845 | filename); | 2843 | filename); |
| 2846 | OnStartGame(); | ||
| 2847 | } | 2844 | } |
| 2848 | 2845 | ||
| 2849 | // TODO: Written 2020-10-01: Remove per-game config migration code when it is irrelevant | 2846 | // TODO: Written 2020-10-01: Remove per-game config migration code when it is irrelevant |