mirror of
https://github.com/PCSX2/pcsx2-sourceforge.git
synced 2026-02-04 03:11:18 +01:00
fix for zerospu2 savestates
This commit is contained in:
@@ -1508,8 +1508,8 @@ void CALLBACK SPU2write(u32 mem, u16 value)
|
||||
if(spuaddr>0xFFFFE)
|
||||
spuaddr = 0x2800;
|
||||
C0_SPUADDR_SET(spuaddr);
|
||||
spu2Ru16(REG_C0_SPUSTAT)&=~0x80;
|
||||
spu2Ru16(REG_C0_CTRL)&=~0x30;
|
||||
// spu2Ru16(REG_C0_SPUSTAT)&=~0x80;
|
||||
// spu2Ru16(REG_C0_CTRL)&=~0x30;
|
||||
break;
|
||||
case REG_C1_SPUDATA:
|
||||
spuaddr = C1_SPUADDR;
|
||||
@@ -1524,8 +1524,8 @@ void CALLBACK SPU2write(u32 mem, u16 value)
|
||||
if(spuaddr>0xFFFFE)
|
||||
spuaddr = 0x2800;
|
||||
C1_SPUADDR_SET(spuaddr);
|
||||
spu2Ru16(REG_C1_SPUSTAT)&=~0x80;
|
||||
spu2Ru16(REG_C1_CTRL)&=~0x30;
|
||||
//spu2Ru16(REG_C1_SPUSTAT)&=~0x80;
|
||||
// spu2Ru16(REG_C1_CTRL)&=~0x30;
|
||||
break;
|
||||
case REG_C0_IRQA_HI:
|
||||
case REG_C0_IRQA_LO:
|
||||
@@ -2118,7 +2118,7 @@ s32 CALLBACK SPU2freeze(int mode, freezeData *data)
|
||||
// if( conf.options & OPTION_REALTIME )
|
||||
// SPUWorkerCycles = SPUCycles;
|
||||
// else
|
||||
// spud->SPUWorkerCycles = SPUWorkerCycles;
|
||||
spud->SPUWorkerCycles = SPUWorkerCycles;
|
||||
memcpy(spud->SPUStartCycle, SPUStartCycle, sizeof(SPUStartCycle));
|
||||
memcpy(spud->SPUTargetCycle, SPUTargetCycle, sizeof(SPUTargetCycle));
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ extern FILE *spu2Log;
|
||||
#define SPU2_VERSION PS2E_SPU2_VERSION
|
||||
#define SPU2_REVISION 0
|
||||
#define SPU2_BUILD 4 // increase that with each version
|
||||
#define SPU2_MINOR 5
|
||||
#define SPU2_MINOR 6
|
||||
|
||||
#define OPTION_TIMESTRETCH 1 // stretches samples without changing pitch to reduce cracking
|
||||
#define OPTION_REALTIME 2 // sync to real time instead of ps2 time
|
||||
|
||||
Reference in New Issue
Block a user