mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 11:01:01 +02:00
Config: Fixes core sanitization
This would have caused core to try and initialize a custom core on Arm64, which causes a std::function assert because it doesn't support that. Users would likely get hit by this immediately since we deleted the interpreter and shifted all the core numbers.
This commit is contained in:
1 parent
86ad35c418
commit
571b0fe47e
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user