From b79d236bfa4a36f7f93d15f160cf375fff24770b Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 26 Sep 2020 19:28:19 +0300 Subject: [PATCH] cellSearch: use std::hash (#8981) --- rpcs3/Emu/Cell/Modules/cellSearch.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSearch.cpp b/rpcs3/Emu/Cell/Modules/cellSearch.cpp index 561a6d336b..c919c6942b 100644 --- a/rpcs3/Emu/Cell/Modules/cellSearch.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSearch.cpp @@ -6,7 +6,6 @@ #include "cellSysutil.h" #include "cellSearch.h" -#include "xxhash.h" #include "Utilities/StrUtil.h" LOG_CHANNEL(cellSearch); @@ -398,7 +397,7 @@ error_code cellSearchStartContentSearch(CellSearchContentSearchType type, CellSe // TODO - Identify sorting method and insert the appropriate values where applicable const std::string item_path(relative_vpath + "/" + item.name); - const u64 hash = XXH64(item_path.c_str(), item_path.length(), 0); + const u64 hash = std::hash()(item_path); auto found = content_map->find(hash); if (found == content_map->end()) // content isn't yet being tracked {