1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

HLE: fix file not found errors in media functions

This commit is contained in:
Megamouse 2022-07-31 16:08:07 +02:00
parent 4c32c95b33
commit f90b79791f
3 changed files with 4 additions and 6 deletions

View File

@ -96,8 +96,6 @@ void music_selection_context::set_playlist(const std::string& path)
for (auto&& dir_entry : fs::dir{path})
{
dir_entry.name = vfs::unescape(dir_entry.name);
if (dir_entry.name == "." || dir_entry.name == "..")
{
continue;

View File

@ -277,15 +277,15 @@ namespace rsx
{
for (auto&& dir_entry : fs::dir{media_path})
{
dir_entry.name = vfs::unescape(dir_entry.name);
if (dir_entry.name == "." || dir_entry.name == "..")
{
continue;
}
const std::string unescaped_name = vfs::unescape(dir_entry.name);
media_list_dialog::media_entry new_entry{};
parse_media_recursive(depth, media_path + "/" + dir_entry.name, dir_entry.name, type, new_entry);
parse_media_recursive(depth, media_path + "/" + dir_entry.name, unescaped_name, type, new_entry);
if (new_entry.type != media_list_dialog::media_type::invalid)
{
new_entry.parent = &current_entry;

View File

@ -191,7 +191,7 @@ EmuCallbacks main_application::CreateCallbacks()
}
else
{
sys_log.warning("get_image_info failed to read '%s'. Error='%s'", filename, reader.errorString().toStdString());
sys_log.error("get_image_info failed to read '%s'. Error='%s'", filename, reader.errorString().toStdString());
}
});
return success;