diff --git a/changelog.txt b/changelog.txt index acc74646..a5e24a78 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,5 @@ ---version 2.0.4 yet to be released--- +08-mar-2009 - adelikat - Lua - memory.readbyte will recognize frozen addresses 08-mar-2009 - adelikat - Lua - added FCEU.lagged() function 08-mar-2009 - adelikat - Lua - added zapper.read() function 07-mar-2009 - adelikat - Lua - added FCEU.lagcount() function diff --git a/src/cheat.cpp b/src/cheat.cpp index a7eebfbd..5e89e30d 100644 --- a/src/cheat.cpp +++ b/src/cheat.cpp @@ -919,9 +919,9 @@ void FCEUI_CheatSearchEnd(int type, uint8 v1, uint8 v2) int FCEU_CheatGetByte(uint32 A) { - if(CheatRPtrs[A>>10]) - return CheatRPtrs[A>>10][A]; - else if(A < 0x10000) + // if(CheatRPtrs[A>>10]) + // return CheatRPtrs[A>>10][A]; //adelikat-commenting this stuff out so that lua can see frozen addresses, I hope this doesn't bork stuff. + /*else*/ if(A < 0x10000) return ARead[A](A); else return 0;