You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VBA-RR, when running the following function
local function func(address)
local addr = memory.readbyte(address)
end
memory.registerwrite(0x4000130, func)
Variable addr would contain new written value
In mGBA, below code will fail, since mGBA passes no values
emu:setWatchpoint(func, 0x4000130, C.WATCHPOINT_TYPE.WRITE)
Moreover, when you check memory it doesn't provide new value
BizHawk passes the address that receives an event action as well as the new value.
Please fix the Lua engine so it behaves like VBA-RR or at least pass same values that BizHawk.
I want to know new value, I have no need for old value
The text was updated successfully, but these errors were encountered:
endrift
changed the title
Lua event callback system broken
Extend watchpoint callback system
Dec 22, 2024
In VBA-RR, when running the following function
local function func(address)
local addr = memory.readbyte(address)
end
memory.registerwrite(0x4000130, func)
Variable addr would contain new written value
In mGBA, below code will fail, since mGBA passes no values
emu:setWatchpoint(func, 0x4000130, C.WATCHPOINT_TYPE.WRITE)
Moreover, when you check memory it doesn't provide new value
BizHawk passes the address that receives an event action as well as the new value.
Please fix the Lua engine so it behaves like VBA-RR or at least pass same values that BizHawk.
I want to know new value, I have no need for old value
The text was updated successfully, but these errors were encountered: