diff options
author | Jesse Talavera-Greenberg <jesse@jesse.tg> | 2023-12-06 09:16:20 -0500 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2023-12-08 17:19:00 +0100 |
commit | 582a421447d7d6e5b414caa9189b583a0051617e (patch) | |
tree | 95ae51379ea2faa1c9ec105480a37ea784b6deb3 | |
parent | 644d190e985521fc337b0612391de2c3fd679340 (diff) |
Don't set the JIT args if the JIT is off
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 30ea0ab..45dc4e0 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -386,17 +386,19 @@ bool EmuThread::UpdateConsole(UpdateConsoleNDSArgs&& ndsargs, UpdateConsoleGBAAr NDS->SetGBACart(std::move(nextgbacart)); } +#ifdef JIT_ENABLED JITArgs jitargs { static_cast<unsigned>(Config::JIT_MaxBlockSize), Config::JIT_LiteralOptimisations, Config::JIT_BranchOptimisations, Config::JIT_FastMemory, }; + NDS->SetJITArgs(Config::JIT_Enable ? std::make_optional(jitargs) : std::nullopt); +#endif NDS->ARM7BIOS = *arm7bios; NDS->ARM9BIOS = *arm9bios; NDS->SetFirmware(std::move(*firmware)); 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.SetDegrade10Bit(static_cast<AudioBitDepth>(Config::AudioBitDepth)); |