PowerPC: Convert CoreMode enum into an enum class

Prevents constants from polluting the namespace.
This commit is contained in:
Lioncash
2017-02-04 19:18:13 -05:00
parent 529dc6aa53
commit f7b9db9846
7 changed files with 21 additions and 24 deletions

View File

@ -175,11 +175,8 @@ int GetFunctionFlagsByIndex(u32 index)
bool IsEnabled(int flags)
{
if (flags == HLE::HLE_TYPE_DEBUG && !SConfig::GetInstance().bEnableDebugging &&
PowerPC::GetMode() != MODE_INTERPRETER)
return false;
return true;
return flags != HLE::HLE_TYPE_DEBUG || SConfig::GetInstance().bEnableDebugging ||
PowerPC::GetMode() == PowerPC::CoreMode::Interpreter;
}
u32 UnPatch(const std::string& patch_name)