mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
Screenshot: sort folders by Title IDs
This commit is contained in:
parent
590483b81f
commit
c549d7154b
1 changed files with 4 additions and 0 deletions
|
@ -512,6 +512,10 @@ void gs_frame::take_screenshot(std::vector<u8> data, const u32 sshot_width, cons
|
||||||
screenshot_log.notice("Taking screenshot (%dx%d)", sshot_width, sshot_height);
|
screenshot_log.notice("Taking screenshot (%dx%d)", sshot_width, sshot_height);
|
||||||
|
|
||||||
std::string screen_path = fs::get_config_dir() + "screenshots/";
|
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)
|
if (!fs::create_dir(screen_path) && fs::g_tls_error != fs::error::exist)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue