HLE: Improve naming
Replace 'function' with 'hook' when appropriate
This commit is contained in:
1 parent
17ad2ac719
commit
4c75b96254
6 files changed
+37
-37
No files matched your search
@@ -192,9 +192,9 @@ static bool CheckIdle(u32 idle_pc)
|
||||
|
||||
bool CachedInterpreter::HandleFunctionHooking(u32 address)
|
||||
{
|
||||
return HLE::ReplaceFunctionIfPossible(address, [&](u32 function, HLE::HookType type) {
|
||||
return HLE::ReplaceFunctionIfPossible(address, [&](u32 hook_index, HLE::HookType type) {
|
||||
m_code.emplace_back(WritePC, address);
|
||||
m_code.emplace_back(Interpreter::HLEFunction, function);
|
||||
m_code.emplace_back(Interpreter::HLEFunction, hook_index);
|
||||
|
||||
if (type != HLE::HookType::Replace)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user