mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
Fix a crash when using DSi mode in debug builds on macOS (#1976)
Store the BIOS images in `NDSArgs`/`DSiArgs` through pointers, not directly - This will make it easier to keep such objects on the stack
This commit is contained in:
@ -80,8 +80,8 @@ NDS::NDS() noexcept :
|
||||
NDSArgs {
|
||||
nullptr,
|
||||
nullptr,
|
||||
bios_arm9_bin,
|
||||
bios_arm7_bin,
|
||||
std::make_unique<ARM9BIOSImage>(bios_arm9_bin),
|
||||
std::make_unique<ARM7BIOSImage>(bios_arm7_bin),
|
||||
Firmware(0),
|
||||
}
|
||||
)
|
||||
@ -90,8 +90,8 @@ NDS::NDS() noexcept :
|
||||
|
||||
NDS::NDS(NDSArgs&& args, int type) noexcept :
|
||||
ConsoleType(type),
|
||||
ARM7BIOS(args.ARM7BIOS),
|
||||
ARM9BIOS(args.ARM9BIOS),
|
||||
ARM7BIOS(*args.ARM7BIOS),
|
||||
ARM9BIOS(*args.ARM9BIOS),
|
||||
ARM7BIOSNative(CRC32(ARM7BIOS.data(), ARM7BIOS.size()) == ARM7BIOSCRC32),
|
||||
ARM9BIOSNative(CRC32(ARM9BIOS.data(), ARM9BIOS.size()) == ARM9BIOSCRC32),
|
||||
JIT(*this, args.JIT),
|
||||
|
Reference in New Issue
Block a user