void S9xSoftReset(void) { if (Settings.SuperFX) S9xResetSuperFX(); memset(Memory.FillRAM, 0, 0x8000); memset(Memory.VRAM, 0x00, 0x10000); // memset (Memory.RAM, 0x55, 0x20000); if (Settings.SPC7110) S9xSpc7110Reset(); S9xResetCPU(); S9xSoftResetPPU(); S9xResetSRTC(); if (Settings.SDD1) S9xResetSDD1(); S9xResetDMA(); S9xResetAPU(); S9xResetDSP1(); if (Settings.OBC1) ResetOBC1(); S9xSA1Init(); if (Settings.C4) S9xInitC4(); #ifdef WANT_CHEATS S9xInitCheatData(); #endif }
void S9xSoftReset (void) { S9xResetSaveTimer (FALSE); if (Settings.BS) S9xResetBSX(); if (Settings.SuperFX) S9xResetSuperFX (); #ifdef ZSNES_FX WinterGold = Settings.WinterGold; #endif ZeroMemory (Memory.FillRAM, 0x8000); memset (Memory.VRAM, 0x00, 0x10000); // memset (Memory.RAM, 0x55, 0x20000); if(Settings.SPC7110) S9xSpc7110Reset(); S9xSoftResetCPU (); S9xSoftResetPPU (); S9xResetSRTC (); if (Settings.SDD1) S9xResetSDD1 (); S9xResetDMA (); S9xResetAPU (); S9xResetDSP1 (); if(Settings.OBC1) ResetOBC1(); S9xSA1Init (); if (Settings.C4) S9xInitC4 (); S9xInitCheatData (); // Settings.Paused = FALSE; }