Lua - memory.readbyte will now recognize frozen addresses (I hope this doesn't have unintended consequences)

This commit is contained in:
adelikat 2009-03-08 20:03:47 +00:00
parent 512f555b3d
commit b47f4e0e0e
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
---version 2.0.4 yet to be released--- ---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 FCEU.lagged() function
08-mar-2009 - adelikat - Lua - added zapper.read() function 08-mar-2009 - adelikat - Lua - added zapper.read() function
07-mar-2009 - adelikat - Lua - added FCEU.lagcount() function 07-mar-2009 - adelikat - Lua - added FCEU.lagcount() function

View File

@ -919,9 +919,9 @@ void FCEUI_CheatSearchEnd(int type, uint8 v1, uint8 v2)
int FCEU_CheatGetByte(uint32 A) int FCEU_CheatGetByte(uint32 A)
{ {
if(CheatRPtrs[A>>10]) // if(CheatRPtrs[A>>10])
return CheatRPtrs[A>>10][A]; // 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) /*else*/ if(A < 0x10000)
return ARead[A](A); return ARead[A](A);
else else
return 0; return 0;