From 303325768bba7b7e85b7d3d1689b7bb0b71e2052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 26 Sep 2016 15:41:57 +0200 Subject: SymbolDB: Only match against the function name This changes GetSymbolFromName to not require the passed name to completely match with the symbol name. Instead, we now match against the stripped symbol name (i.e. only the function name). This fixes a regression introduced by #4160, which prevented HLE::PatchFunctions() from working properly. --- Source/Core/Common/SymbolDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/SymbolDB.cpp') diff --git a/Source/Core/Common/SymbolDB.cpp b/Source/Core/Common/SymbolDB.cpp index 6b6f72d33e..9e91b64457 100644 --- a/Source/Core/Common/SymbolDB.cpp +++ b/Source/Core/Common/SymbolDB.cpp @@ -41,7 +41,7 @@ Symbol* SymbolDB::GetSymbolFromName(const std::string& name) { for (auto& func : functions) { - if (func.second.name == name) + if (func.second.function_name == name) return &func.second; } -- cgit v1.2.3