mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
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.
This commit is contained in:
parent
e7aad130e9
commit
303325768b
3 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue