diff options
| author | 2021-02-13 02:56:23 -0500 | |
|---|---|---|
| committer | 2021-02-13 02:56:23 -0500 | |
| commit | 710aa22f7cbed7e9ace7b25425b58b2c65a94d11 (patch) | |
| tree | d50059e226f522e6225ae83faf9b23685e66ca41 | |
| parent | Merge pull request #5916 from ameerj/maxwell-gl-unused (diff) | |
| parent | yuzu: Create screenshot path before capture (diff) | |
| download | yuzu-710aa22f7cbed7e9ace7b25425b58b2c65a94d11.tar.gz yuzu-710aa22f7cbed7e9ace7b25425b58b2c65a94d11.tar.xz yuzu-710aa22f7cbed7e9ace7b25425b58b2c65a94d11.zip | |
Merge pull request #5915 from lat9nq/screenshots-dir-fix
yuzu: Create screenshot path before capture
| -rw-r--r-- | src/yuzu/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 52218eb70..28a52a56c 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -2490,6 +2490,11 @@ void GMainWindow::OnCaptureScreenshot() { | |||
| 2490 | .arg(title_id, 16, 16, QLatin1Char{'0'}) | 2490 | .arg(title_id, 16, 16, QLatin1Char{'0'}) |
| 2491 | .arg(date); | 2491 | .arg(date); |
| 2492 | 2492 | ||
| 2493 | if (!Common::FS::CreateDir(screenshot_path.toStdString())) { | ||
| 2494 | OnStartGame(); | ||
| 2495 | return; | ||
| 2496 | } | ||
| 2497 | |||
| 2493 | #ifdef _WIN32 | 2498 | #ifdef _WIN32 |
| 2494 | if (UISettings::values.enable_screenshot_save_as) { | 2499 | if (UISettings::values.enable_screenshot_save_as) { |
| 2495 | filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename, | 2500 | filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename, |