Don't set the JIT args if the JIT is off
This commit is contained in:
parent
644d190e98
commit
582a421447
|
@ -386,17 +386,19 @@ bool EmuThread::UpdateConsole(UpdateConsoleNDSArgs&& ndsargs, UpdateConsoleGBAAr
|
||||||
NDS->SetGBACart(std::move(nextgbacart));
|
NDS->SetGBACart(std::move(nextgbacart));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef JIT_ENABLED
|
||||||
JITArgs jitargs {
|
JITArgs jitargs {
|
||||||
static_cast<unsigned>(Config::JIT_MaxBlockSize),
|
static_cast<unsigned>(Config::JIT_MaxBlockSize),
|
||||||
Config::JIT_LiteralOptimisations,
|
Config::JIT_LiteralOptimisations,
|
||||||
Config::JIT_BranchOptimisations,
|
Config::JIT_BranchOptimisations,
|
||||||
Config::JIT_FastMemory,
|
Config::JIT_FastMemory,
|
||||||
};
|
};
|
||||||
|
NDS->SetJITArgs(Config::JIT_Enable ? std::make_optional(jitargs) : std::nullopt);
|
||||||
|
#endif
|
||||||
NDS->ARM7BIOS = *arm7bios;
|
NDS->ARM7BIOS = *arm7bios;
|
||||||
NDS->ARM9BIOS = *arm9bios;
|
NDS->ARM9BIOS = *arm9bios;
|
||||||
NDS->SetFirmware(std::move(*firmware));
|
NDS->SetFirmware(std::move(*firmware));
|
||||||
NDS->SetNDSCart(std::move(nextndscart));
|
NDS->SetNDSCart(std::move(nextndscart));
|
||||||
NDS->SetJITArgs(Config::JIT_Enable ? std::make_optional(jitargs) : std::nullopt);
|
|
||||||
NDS->SPU.SetInterpolation(static_cast<AudioInterpolation>(Config::AudioInterp));
|
NDS->SPU.SetInterpolation(static_cast<AudioInterpolation>(Config::AudioInterp));
|
||||||
NDS->SPU.SetDegrade10Bit(static_cast<AudioBitDepth>(Config::AudioBitDepth));
|
NDS->SPU.SetDegrade10Bit(static_cast<AudioBitDepth>(Config::AudioBitDepth));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue