cellScreenshot: escape photo_title in path

This commit is contained in:
Megamouse 2025-12-07 10:36:55 +01:00
parent e4b3f45d76
commit 67b61e8fef

View File

@ -50,7 +50,7 @@ std::string screenshot_info::get_screenshot_path(s32 year, s32 month, s32 day, s
{
u32 counter = 0;
const std::string path = vfs::get(fmt::format("/dev_hdd0/photo/%04d/%02d/%02d/%s %02d-%02d-%04d %02d-%02d-%02d",
year, month, day, get_photo_title(), day, month, year, hour, minute, second));
year, month, day, vfs::escape(get_photo_title(), true), day, month, year, hour, minute, second));
constexpr std::string_view extension = ".png";
std::string suffix = std::string(extension);