Qt: fix screenshot path creation

This commit is contained in:
Megamouse 2021-12-10 14:24:20 +01:00
parent 6f9adbd162
commit 56fe450959

View file

@ -523,7 +523,7 @@ void gs_frame::take_screenshot(std::vector<u8> data, const u32 sshot_width, cons
screen_path += id + "/"; screen_path += id + "/";
}; };
if (!fs::create_dir(screen_path) && fs::g_tls_error != fs::error::exist) if (!fs::create_path(screen_path) && fs::g_tls_error != fs::error::exist)
{ {
screenshot_log.error("Failed to create screenshot path \"%s\" : %s", screen_path, fs::g_tls_error); screenshot_log.error("Failed to create screenshot path \"%s\" : %s", screen_path, fs::g_tls_error);
return; return;