From be59d82047b5f44fa3a69561276a56449258d40f Mon Sep 17 00:00:00 2001 From: lat9nq Date: Tue, 14 Jul 2020 13:36:09 -0400 Subject: settings: Move settings sanitization to its own function Creates a new function that can be expanded later to fix other settings that are known to cause emulation errors across executables. --- src/core/settings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/settings.cpp') diff --git a/src/core/settings.cpp b/src/core/settings.cpp index d3886c4ec7..38f0789a02 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -184,4 +184,10 @@ void RestoreGlobalState() { values.sound_index.SetGlobal(true); } +void Sanitize() { + values.use_asynchronous_gpu_emulation.SetValue( + values.use_asynchronous_gpu_emulation.GetValue() || + values.use_multi_core.GetValue()); +} + } // namespace Settings -- cgit v1.2.3