mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
VRAM dirty tracking fix reset/savestate load
This commit is contained in:
@ -93,7 +93,12 @@ struct VRAMTrackingSet
|
||||
|
||||
void Reset()
|
||||
{
|
||||
memset(Mapping, 0, sizeof(Mapping));
|
||||
for (int i = 0; i < Size / MappingGranularity; i++)
|
||||
{
|
||||
// this is not a real VRAM bank
|
||||
// so it will always be a mismatch => the bank will be completely invalidated
|
||||
Mapping[i] = 0x8000;
|
||||
}
|
||||
}
|
||||
NonStupidBitField<Size/VRAMDirtyGranularity> DeriveState(u32* currentMappings);
|
||||
};
|
||||
|
Reference in New Issue
Block a user