HLE: Use enum classes for HookType and HookFlag
This commit is contained in:
1 parent
a184ab93b6
commit
3deb8ce074
5 files changed
+52
-52
No files matched your search
@@ -208,15 +208,15 @@ void CachedInterpreter::Jit(u32 address)
|
||||
u32 function = HLE::GetFirstFunctionIndex(ops[i].address);
|
||||
if (function != 0)
|
||||
{
|
||||
int type = HLE::GetFunctionTypeByIndex(function);
|
||||
if (type == HLE::HLE_HOOK_START || type == HLE::HLE_HOOK_REPLACE)
|
||||
HLE::HookType type = HLE::GetFunctionTypeByIndex(function);
|
||||
if (type == HLE::HookType::Start || type == HLE::HookType::Replace)
|
||||
{
|
||||
int flags = HLE::GetFunctionFlagsByIndex(function);
|
||||
HLE::HookFlag flags = HLE::GetFunctionFlagsByIndex(function);
|
||||
if (HLE::IsEnabled(flags))
|
||||
{
|
||||
m_code.emplace_back(WritePC, ops[i].address);
|
||||
m_code.emplace_back(Interpreter::HLEFunction, function);
|
||||
if (type == HLE::HLE_HOOK_REPLACE)
|
||||
if (type == HLE::HookType::Replace)
|
||||
{
|
||||
m_code.emplace_back(EndBlock, js.downcountAmount);
|
||||
m_code.emplace_back();
|
||||
|
||||
Reference in new issue
Block a user