mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
plugins/cheat: oops (nw)
This commit is contained in:
parent
eca1241144
commit
4d69d70d20
@ -192,7 +192,7 @@ function codefuncs.megadriv_ar(desc, code)
|
||||
if #code ~= 10 then
|
||||
error("error action replay cheat incorrect length " .. desc)
|
||||
end
|
||||
local addr = tonumber(code:sub(1, 7), 16)
|
||||
local addr = tonumber(code:sub(1, 6), 16)
|
||||
local val = tonumber(code:sub(7, 10), 16)
|
||||
if addr < 0xff0000 then
|
||||
error("error action replay cheat not ram addr " .. desc)
|
||||
|
Loading…
Reference in New Issue
Block a user