DSPCore: Convert core type enum into an enum class

Prevents pollution of the surrounding scope and makes the values
strongly-typed.
This commit is contained in:
Lioncash
2018-06-15 07:54:21 -04:00
parent 58606702f7
commit 98af5e4c10
3 changed files with 9 additions and 9 deletions

View File

@ -153,10 +153,10 @@ static bool FillDSPInitOptions(DSPInitOptions* opts)
if (!LoadDSPRom(opts->coef_contents.data(), coef_file, DSP_COEF_BYTE_SIZE))
return false;
opts->core_type = DSPInitOptions::CORE_INTERPRETER;
opts->core_type = DSPInitOptions::CoreType::Interpreter;
#ifdef _M_X86
if (SConfig::GetInstance().m_DSPEnableJIT)
opts->core_type = DSPInitOptions::CORE_JIT;
opts->core_type = DSPInitOptions::CoreType::JIT;
#endif
if (SConfig::GetInstance().m_DSPCaptureLog)