mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
fix bug in savestate loading
This commit is contained in:
parent
6f7a2b3413
commit
e78ada50b9
@ -935,7 +935,9 @@ bool DoSavestate(Savestate* file)
|
||||
{
|
||||
// 'dept of redundancy dept'
|
||||
// but we do need to update the mappings
|
||||
MapSharedWRAM(WRAMCnt);
|
||||
u8 wramcnt = WRAMCnt;
|
||||
WRAMCnt ^= 0xFF;
|
||||
MapSharedWRAM(wramcnt);
|
||||
|
||||
InitTimings();
|
||||
SetGBASlotTimings();
|
||||
|
@ -647,6 +647,10 @@ printf("[MC] finish blob type=%d len=%d\n", type, len);
|
||||
BlobLens[i] = 0;
|
||||
}
|
||||
|
||||
/*Savestate* zorp = new Savestate("netplay3.mln", true);
|
||||
NDS::DoSavestate(zorp);
|
||||
delete zorp;*/
|
||||
|
||||
printf("[MC] state loaded, PC=%08X/%08X\n", NDS::GetPC(0), NDS::GetPC(1));
|
||||
ENetPacket* resp = enet_packet_create(buf, 1, ENET_PACKET_FLAG_RELIABLE);
|
||||
enet_peer_send(peer, 1, resp);
|
||||
|
Loading…
Reference in New Issue
Block a user