That couldn't work :p

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@28 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
ramapcsx2 2008-08-14 16:48:18 +00:00 committed by Gregory Hainaut
parent 6d2a9644a8
commit 495db3a47c
1 changed files with 9 additions and 9 deletions

View File

@ -172,11 +172,11 @@ void _applypatch(int place, IniPatch *p) {
// Check if needed to read another pointer
if (IterationCount == 0){
PrevCheatType = 0;
if (LastType=0x0)
if (LastType==0x0)
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
if (LastType=0x1)
if (LastType==0x1)
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
if (LastType=0x2)
if (LastType==0x2)
memWrite32(PrevCheataddr,IterationIncrement);
}else{
PrevCheatType = 0x6001;
@ -192,11 +192,11 @@ void _applypatch(int place, IniPatch *p) {
// Check if needed to read another pointer
if (IterationCount == 0){
PrevCheatType = 0;
if (LastType=0x0)
if (LastType==0x0)
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
if (LastType=0x1)
if (LastType==0x1)
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
if (LastType=0x2)
if (LastType==0x2)
memWrite32(PrevCheataddr,IterationIncrement);
}else{
memRead32(PrevCheataddr,&u32Val);
@ -204,11 +204,11 @@ void _applypatch(int place, IniPatch *p) {
IterationCount--;
if (IterationCount == 0){
PrevCheatType = 0;
if (LastType=0x0)
if (LastType==0x0)
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
if (LastType=0x1)
if (LastType==0x1)
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
if (LastType=0x2)
if (LastType==0x2)
memWrite32(PrevCheataddr,IterationIncrement);
}
}