From b5f3f910f6a146dbce35bfd660847a4426461cb9 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 9 Jan 2024 21:40:50 +0100 Subject: [PATCH] cellSearch: fix vfs music and video paths --- rpcs3/Emu/Cell/Modules/cellSearch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSearch.cpp b/rpcs3/Emu/Cell/Modules/cellSearch.cpp index 818204cffd..3e0e0abbbc 100644 --- a/rpcs3/Emu/Cell/Modules/cellSearch.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSearch.cpp @@ -879,7 +879,7 @@ error_code cellSearchStartContentSearchInList(vm::cptr list { curr_find->type = CELL_SEARCH_CONTENTTYPE_MUSIC; - const std::string path = vfs::get(vpath) + "/" + item.name; + const std::string path = vfs::get(item_path); const auto [success, mi] = utils::get_media_info(path, 1); // AVMEDIA_TYPE_AUDIO if (!success) { @@ -900,7 +900,7 @@ error_code cellSearchStartContentSearchInList(vm::cptr list { curr_find->type = CELL_SEARCH_CONTENTTYPE_VIDEO; - const std::string path = vfs::get(vpath) + "/" + item.name; + const std::string path = vfs::get(item_path); const auto [success, mi] = utils::get_media_info(path, 0); // AVMEDIA_TYPE_VIDEO if (!success) { @@ -1120,7 +1120,7 @@ error_code cellSearchStartContentSearch(CellSearchContentSearchType type, CellSe { curr_find->type = CELL_SEARCH_CONTENTTYPE_MUSIC; - const std::string path = vfs::get(vpath) + "/" + item.name; + const std::string path = vfs::get(item_path); const auto [success, mi] = utils::get_media_info(path, 1); // AVMEDIA_TYPE_AUDIO if (!success) { @@ -1141,7 +1141,7 @@ error_code cellSearchStartContentSearch(CellSearchContentSearchType type, CellSe { curr_find->type = CELL_SEARCH_CONTENTTYPE_VIDEO; - const std::string path = vfs::get(vpath) + "/" + item.name; + const std::string path = vfs::get(item_path); const auto [success, mi] = utils::get_media_info(path, 0); // AVMEDIA_TYPE_VIDEO if (!success) {