void S9xSoftReset (void) { #ifdef SNSF9X_REMOVED S9xResetSaveTimer(FALSE); #endif memset(Memory.VRAM, 0x00, 0x10000); ZeroMemory(Memory.FillRAM, 0x8000); #ifdef SNSF9X_REMOVED if (Settings.BS) S9xResetBSX(); #endif S9xSoftResetCPU(); S9xSoftResetPPU(); S9xResetDMA(); S9xSoftResetAPU(); #ifdef SNSF9X_REMOVED if (Settings.DSP) S9xResetDSP(); if (Settings.SuperFX) S9xResetSuperFX(); #endif #ifndef SNSF9X_REMOVED_SA1 if (Settings.SA1) S9xSA1Init(); #endif #ifndef SNSF9X_REMOVED_SDD1 if (Settings.SDD1) S9xResetSDD1(); #endif #ifdef SNSF9X_REMOVED if (Settings.SPC7110) S9xResetSPC7110(); if (Settings.C4) S9xInitC4(); if (Settings.OBC1) S9xResetOBC1(); if (Settings.SRTC) S9xResetSRTC(); S9xInitCheatData(); #endif }
void S9xSoftReset (void) { S9xResetSaveTimer(FALSE); memset(Memory.FillRAM, 0, 0x8000); if (Settings.BS) S9xResetBSX(); S9xSoftResetCPU(); S9xSoftResetPPU(); S9xResetDMA(); S9xSoftResetAPU(); S9xResetMSU(); if (Settings.DSP) S9xResetDSP(); if (Settings.SuperFX) S9xResetSuperFX(); if (Settings.SA1) S9xSA1Init(); if (Settings.SDD1) S9xResetSDD1(); if (Settings.SPC7110) S9xResetSPC7110(); if (Settings.C4) S9xInitC4(); if (Settings.OBC1) S9xResetOBC1(); if (Settings.SRTC) S9xResetSRTC(); if (Settings.MSU1) S9xMSU1Init(); S9xInitCheatData(); }