diff options
author | lat9nq <lat9nq@virginia.edu> | 2020-07-07 19:47:08 +0200 |
---|---|---|
committer | lat9nq <lat9nq@virginia.edu> | 2020-07-21 05:03:55 +0200 |
commit | 599b7c26a9accd9e0e58604422473dd75519daee (patch) | |
tree | 0b88f83a28a6481cca66bd15198203ffa9629a08 | |
parent | main: rewrite (save as) screenshot saving (diff) | |
download | yuzu-599b7c26a9accd9e0e58604422473dd75519daee.tar yuzu-599b7c26a9accd9e0e58604422473dd75519daee.tar.gz yuzu-599b7c26a9accd9e0e58604422473dd75519daee.tar.bz2 yuzu-599b7c26a9accd9e0e58604422473dd75519daee.tar.lz yuzu-599b7c26a9accd9e0e58604422473dd75519daee.tar.xz yuzu-599b7c26a9accd9e0e58604422473dd75519daee.tar.zst yuzu-599b7c26a9accd9e0e58604422473dd75519daee.zip |
-rw-r--r-- | src/yuzu/main.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index c6bf5214e..e6a1a80a3 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2155,12 +2155,14 @@ void GMainWindow::OnCaptureScreenshot() { OnPauseGame(); const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); - const auto screenshot_path = FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir); - const auto date = QDateTime::currentDateTime() - .toString(QStringLiteral("yyyy-MM-dd_hh-mm-ss-zzz")) - .toStdString(); - QString filename = QString::fromStdString(screenshot_path + fmt::format("{:016X}", title_id) + - "_" + date + ".png"); + const auto screenshot_path = + QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir)); + const auto date = + QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd_hh-mm-ss-zzz")); + QString filename = QStringLiteral("%1%2_%3.png") + .arg(screenshot_path) + .arg(title_id, 16, 16, QLatin1Char{'0'}) + .arg(date); #ifdef _WIN32 if (UISettings::values.enable_screenshot_save_as) { |