mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
Soften restrictions around ARMJIT_Memory::RemapNWRAM
- If in NDS mode, return instead of `assert`ing - Use `static_cast` and `ConsoleType` instead of `dynamic_cast`
This commit is contained in:

committed by
Nadia Holmquist Pedersen

parent
1b7b5106e2
commit
2a35af5bb9
@ -473,8 +473,10 @@ void ARMJIT_Memory::RemapDTCM(u32 newBase, u32 newSize) noexcept
|
|||||||
|
|
||||||
void ARMJIT_Memory::RemapNWRAM(int num) noexcept
|
void ARMJIT_Memory::RemapNWRAM(int num) noexcept
|
||||||
{
|
{
|
||||||
auto* dsi = dynamic_cast<DSi*>(&NDS);
|
if (NDS.ConsoleType == 0)
|
||||||
assert(dsi != nullptr);
|
return;
|
||||||
|
|
||||||
|
auto* dsi = static_cast<DSi*>(&NDS);
|
||||||
for (int i = 0; i < Mappings[memregion_SharedWRAM].Length;)
|
for (int i = 0; i < Mappings[memregion_SharedWRAM].Length;)
|
||||||
{
|
{
|
||||||
Mapping& mapping = Mappings[memregion_SharedWRAM][i];
|
Mapping& mapping = Mappings[memregion_SharedWRAM][i];
|
||||||
|
Reference in New Issue
Block a user