diff options
author | Jesse Talavera <jesse@jesse.tg> | 2023-12-15 08:54:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 14:54:41 +0100 |
commit | 24c402af51fe9c0537582173fc48d1ad3daff459 (patch) | |
tree | 854213830c1565e0fd40571c80294741822a2d21 /src/frontend/qt_sdl | |
parent | c867a7f1c09b3c5f07e0772fcddabce07bcd7fe7 (diff) |
Fix detection of native NDS ARM BIOS images (#1910)
* Fix detection of native NDS ARM BIOS images
- Instead of checking for built-in BIOS images, now the altered methods check for native ones
- The CRC32 must match exactly; patched BIOS images will result in `false`
* Encapsulate `NDS::ARM9BIOS` and `ARM7BIOS`
- Also compute the checksum only when setting the BIOS
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 3eb5db0..ba5fecb 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -395,8 +395,8 @@ bool EmuThread::UpdateConsole(UpdateConsoleNDSArgs&& ndsargs, UpdateConsoleGBAAr }; NDS->SetJITArgs(Config::JIT_Enable ? std::make_optional(jitargs) : std::nullopt); #endif - NDS->ARM7BIOS = *arm7bios; - NDS->ARM9BIOS = *arm9bios; + NDS->SetARM7BIOS(*arm7bios); + NDS->SetARM9BIOS(*arm9bios); NDS->SetFirmware(std::move(*firmware)); NDS->SetNDSCart(std::move(nextndscart)); NDS->SPU.SetInterpolation(static_cast<AudioInterpolation>(Config::AudioInterp)); |