Update of /cvsroot/vba/VisualBoyAdvance/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12266
Modified Files:
Cheats.cpp
Log Message:
Improve CodeBreaker code 0xDxxxxxxx support
Index: Cheats.cpp
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/Cheats.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Cheats.cpp 21 Jan 2004 01:01:34 -0000 1.17
--- Cheats.cpp 24 Feb 2004 10:40:23 -0000 1.18
***************
*** 274,283 ****
break;
case CBA_IF_KEYS_PRESSED:
! if(cheatsList[i].address == 0x20) {
! if((keys & cheatsList[i].value) != cheatsList[i].value) {
! i++;
}
- } else if(cheatsList[i].value != keys) {
- i++;
}
break;
--- 274,289 ----
break;
case CBA_IF_KEYS_PRESSED:
! {
! u16 value = cheatsList[i].value;
! u32 addr = cheatsList[i].address;
! if((addr & 0x30) == 0x20) {
! if((keys & value) != value) {
! i++;
! }
! } else if((addr & 0x30) == 0x10) {
! if((keys & value) == value) {
! i++;
! }
}
}
break;
|