From c549d7154bfb18689574538756d9e3fc8116ba78 Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Sat, 10 Jul 2021 09:52:50 -0500 Subject: [PATCH] Screenshot: sort folders by Title IDs --- rpcs3/rpcs3qt/gs_frame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/rpcs3qt/gs_frame.cpp b/rpcs3/rpcs3qt/gs_frame.cpp index 8235768ffe..acd8081bb8 100644 --- a/rpcs3/rpcs3qt/gs_frame.cpp +++ b/rpcs3/rpcs3qt/gs_frame.cpp @@ -512,6 +512,10 @@ void gs_frame::take_screenshot(std::vector data, const u32 sshot_width, cons screenshot_log.notice("Taking screenshot (%dx%d)", sshot_width, sshot_height); std::string screen_path = fs::get_config_dir() + "screenshots/"; + if (const std::string id = Emu.GetTitleID(); !id.empty()) + { + screen_path += id + "/"; + }; if (!fs::create_dir(screen_path) && fs::g_tls_error != fs::error::exist) {