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