mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
6d2a9644a8
commit
495db3a47c
|
@ -172,11 +172,11 @@ void _applypatch(int place, IniPatch *p) {
|
||||||
// Check if needed to read another pointer
|
// Check if needed to read another pointer
|
||||||
if (IterationCount == 0){
|
if (IterationCount == 0){
|
||||||
PrevCheatType = 0;
|
PrevCheatType = 0;
|
||||||
if (LastType=0x0)
|
if (LastType==0x0)
|
||||||
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
|
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
|
||||||
if (LastType=0x1)
|
if (LastType==0x1)
|
||||||
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
|
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
|
||||||
if (LastType=0x2)
|
if (LastType==0x2)
|
||||||
memWrite32(PrevCheataddr,IterationIncrement);
|
memWrite32(PrevCheataddr,IterationIncrement);
|
||||||
}else{
|
}else{
|
||||||
PrevCheatType = 0x6001;
|
PrevCheatType = 0x6001;
|
||||||
|
@ -192,11 +192,11 @@ void _applypatch(int place, IniPatch *p) {
|
||||||
// Check if needed to read another pointer
|
// Check if needed to read another pointer
|
||||||
if (IterationCount == 0){
|
if (IterationCount == 0){
|
||||||
PrevCheatType = 0;
|
PrevCheatType = 0;
|
||||||
if (LastType=0x0)
|
if (LastType==0x0)
|
||||||
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
|
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
|
||||||
if (LastType=0x1)
|
if (LastType==0x1)
|
||||||
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
|
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
|
||||||
if (LastType=0x2)
|
if (LastType==0x2)
|
||||||
memWrite32(PrevCheataddr,IterationIncrement);
|
memWrite32(PrevCheataddr,IterationIncrement);
|
||||||
}else{
|
}else{
|
||||||
memRead32(PrevCheataddr,&u32Val);
|
memRead32(PrevCheataddr,&u32Val);
|
||||||
|
@ -204,11 +204,11 @@ void _applypatch(int place, IniPatch *p) {
|
||||||
IterationCount--;
|
IterationCount--;
|
||||||
if (IterationCount == 0){
|
if (IterationCount == 0){
|
||||||
PrevCheatType = 0;
|
PrevCheatType = 0;
|
||||||
if (LastType=0x0)
|
if (LastType==0x0)
|
||||||
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
|
memWrite8(PrevCheataddr,IterationIncrement&0xFF);
|
||||||
if (LastType=0x1)
|
if (LastType==0x1)
|
||||||
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
|
memWrite16(PrevCheataddr,IterationIncrement&0xFFFF);
|
||||||
if (LastType=0x2)
|
if (LastType==0x2)
|
||||||
memWrite32(PrevCheataddr,IterationIncrement);
|
memWrite32(PrevCheataddr,IterationIncrement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue