aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2021-02-13 02:56:23 -0500
committerGitHub <noreply@github.com>2021-02-13 02:56:23 -0500
commit710aa22f7cbed7e9ace7b25425b58b2c65a94d11 (patch)
treed50059e226f522e6225ae83faf9b23685e66ca41 /src
parent6f1ad6aa9f6803a51367ce90450347565f49a54f (diff)
parentdcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11 (diff)
Merge pull request #5915 from lat9nq/screenshots-dir-fix
yuzu: Create screenshot path before capture
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 52218eb705..28a52a56c0 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -2490,6 +2490,11 @@ void GMainWindow::OnCaptureScreenshot() {
.arg(title_id, 16, 16, QLatin1Char{'0'})
.arg(date);
+ if (!Common::FS::CreateDir(screenshot_path.toStdString())) {
+ OnStartGame();
+ return;
+ }
+
#ifdef _WIN32
if (UISettings::values.enable_screenshot_save_as) {
filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename,