mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
@ -524,8 +524,8 @@ bool MapAtAddress(u32 addr)
|
|||||||
{
|
{
|
||||||
u32 sectionOffset = offset;
|
u32 sectionOffset = offset;
|
||||||
bool hasCode = isExecutable && ARMJIT::PageContainsCode(&range[offset / 512]);
|
bool hasCode = isExecutable && ARMJIT::PageContainsCode(&range[offset / 512]);
|
||||||
while ((!isExecutable || ARMJIT::PageContainsCode(&range[offset / 512]) == hasCode)
|
while (offset < mirrorSize
|
||||||
&& offset < mirrorSize
|
&& (!isExecutable || ARMJIT::PageContainsCode(&range[offset / 512]) == hasCode)
|
||||||
&& (!skipDTCM || mirrorStart + offset != NDS::ARM9->DTCMBase))
|
&& (!skipDTCM || mirrorStart + offset != NDS::ARM9->DTCMBase))
|
||||||
{
|
{
|
||||||
assert(states[(mirrorStart + offset) >> 12] == memstate_Unmapped);
|
assert(states[(mirrorStart + offset) >> 12] == memstate_Unmapped);
|
||||||
|
Reference in New Issue
Block a user