summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-02-12 23:21:44 +0100
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2021-02-12 23:26:01 +0100
commitdcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11 (patch)
treea074c97b06059a16329f6eb7923e591e07a2fd7a
parentMerge pull request #5902 from lioncash/core-warn (diff)
downloadyuzu-dcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11.tar
yuzu-dcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11.tar.gz
yuzu-dcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11.tar.bz2
yuzu-dcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11.tar.lz
yuzu-dcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11.tar.xz
yuzu-dcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11.tar.zst
yuzu-dcc0617cc2d5b0fd3ebfa42b66721bf9e575dd11.zip
Diffstat (limited to '')
-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 52218eb70..28a52a56c 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,