CPU: Add settings for execution mode
This commit is contained in:
@ -8,6 +8,8 @@ struct Settings
|
||||
|
||||
ConsoleRegion region = ConsoleRegion::Auto;
|
||||
|
||||
CPUExecutionMode cpu_execution_mode = CPUExecutionMode::Interpreter;
|
||||
|
||||
bool start_paused = false;
|
||||
bool speed_limiter_enabled = true;
|
||||
bool audio_sync_enabled = true;
|
||||
@ -51,6 +53,10 @@ struct Settings
|
||||
static const char* GetConsoleRegionName(ConsoleRegion region);
|
||||
static const char* GetConsoleRegionDisplayName(ConsoleRegion region);
|
||||
|
||||
static std::optional<CPUExecutionMode> ParseCPUExecutionMode(const char* str);
|
||||
static const char* GetCPUExecutionModeName(CPUExecutionMode mode);
|
||||
static const char* GetCPUExecutionModeDisplayName(CPUExecutionMode mode);
|
||||
|
||||
static std::optional<GPURenderer> ParseRendererName(const char* str);
|
||||
static const char* GetRendererName(GPURenderer renderer);
|
||||
static const char* GetRendererDisplayName(GPURenderer renderer);
|
||||
|
||||
Reference in New Issue
Block a user