mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-10 03:58:09 -05:00
configuration: Add cpu_core configuration option
This commit is contained in:
@ -140,8 +140,16 @@ void System::Reschedule() {
|
||||
System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
|
||||
LOG_DEBUG(HW_Memory, "initialized OK");
|
||||
|
||||
// TODO: Configuration option
|
||||
cpu_core = std::make_unique<ARM_Dynarmic>();
|
||||
switch (Settings::values.cpu_core) {
|
||||
case Settings::CpuCore::Unicorn:
|
||||
cpu_core = std::make_unique<ARM_Unicorn>();
|
||||
break;
|
||||
case Settings::CpuCore::Dynarmic:
|
||||
default:
|
||||
cpu_core = std::make_unique<ARM_Dynarmic>();
|
||||
break;
|
||||
}
|
||||
|
||||
telemetry_session = std::make_unique<Core::TelemetrySession>();
|
||||
|
||||
CoreTiming::Init();
|
||||
|
Reference in New Issue
Block a user