Merge pull request #3140 from Sonicadvance1/fix_core_sanitization

Config: Fixes core sanitization
This commit is contained in:
Mai authored and GitHub committed 2023-09-23 09:01:42 -04:00
commit da3e172857
1 file changed
+2 -2
+2 -2
View File
@@ -335,9 +335,9 @@ namespace DefaultValues {
// Sanitize Core option
FEX_CONFIG_OPT(Core, CORE);
#if (_M_X86_64)
constexpr uint32_t MaxCoreNumber = 2;
#else
constexpr uint32_t MaxCoreNumber = 1;
#else
constexpr uint32_t MaxCoreNumber = 0;
#endif
if (Core > MaxCoreNumber) {
// Sanitize the core option by setting the core to the JIT if invalid