diff options
| author | 2021-07-25 14:24:08 -0400 | |
|---|---|---|
| committer | 2021-07-25 14:24:08 -0400 | |
| commit | 9dd35b7b66e266d97bfffba9e2cdc4a8852b54f0 (patch) | |
| tree | 411b00ed6470eaba2c86e09bbb83dd2752822c98 | |
| parent | Merge pull request #6699 from lat9nq/common-threads (diff) | |
| download | yuzu-9dd35b7b66e266d97bfffba9e2cdc4a8852b54f0.tar.gz yuzu-9dd35b7b66e266d97bfffba9e2cdc4a8852b54f0.tar.xz yuzu-9dd35b7b66e266d97bfffba9e2cdc4a8852b54f0.zip | |
main: Fix screenshot filepath construction
The screenshot directory path returned does not have a trailing directory separator character. This caused screenshots to be saved in the parent directory of the configured screenshot directory.
This fixes that behavior
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 03a909d17..5ddce2261 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -2823,7 +2823,7 @@ void GMainWindow::OnCaptureScreenshot() { | |||
| 2823 | QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir)); | 2823 | QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir)); |
| 2824 | const auto date = | 2824 | const auto date = |
| 2825 | QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd_hh-mm-ss-zzz")); | 2825 | QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd_hh-mm-ss-zzz")); |
| 2826 | QString filename = QStringLiteral("%1%2_%3.png") | 2826 | QString filename = QStringLiteral("%1/%2_%3.png") |
| 2827 | .arg(screenshot_path) | 2827 | .arg(screenshot_path) |
| 2828 | .arg(title_id, 16, 16, QLatin1Char{'0'}) | 2828 | .arg(title_id, 16, 16, QLatin1Char{'0'}) |
| 2829 | .arg(date); | 2829 | .arg(date); |