mirror of
https://github.com/notwa/mm
synced 2024-11-05 03:29:02 -08:00
flag wiping function; clean up flag addrs
This commit is contained in:
parent
7b8c2fff87
commit
3bbca2b221
2 changed files with 18 additions and 4 deletions
|
@ -119,6 +119,12 @@ return {
|
||||||
beans = AL(0x9A, 1),
|
beans = AL(0x9A, 1),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
event_chk_inf = AL(0xED4, 0x1C),
|
||||||
|
item_get_inf = AL(0xEF0, 0x8),
|
||||||
|
inf_table = AL(0xEF8, 0x3C),
|
||||||
|
event_inf = AL(0x13FA, 0x8),
|
||||||
|
|
||||||
buttons = AG(0x14, 2),
|
buttons = AG(0x14, 2),
|
||||||
scene_number = AG(0xA4, 2),
|
scene_number = AG(0xA4, 2),
|
||||||
camera_target = AG(0x270, 4),
|
camera_target = AG(0x270, 4),
|
||||||
|
|
|
@ -96,10 +96,10 @@ if mm then
|
||||||
inf:load('data/_inf.lua')
|
inf:load('data/_inf.lua')
|
||||||
fms = {weg, inf}
|
fms = {weg, inf}
|
||||||
elseif oot then
|
elseif oot then
|
||||||
eci = FlagMonitor('eci', AL(0xED4, 0x1C))
|
eci = FlagMonitor('eci', addrs.event_chk_inf)
|
||||||
igi = FlagMonitor('igi', AL(0xEF0, 0x8))
|
igi = FlagMonitor('igi', addrs.item_get_inf)
|
||||||
it_ = FlagMonitor('it ', AL(0xEF8, 0x3C))
|
it_ = FlagMonitor('it ', addrs.inf_table)
|
||||||
ei_ = FlagMonitor('ei ', AL(0x13FA, 0x8))
|
ei_ = FlagMonitor('ei ', addrs.event_inf)
|
||||||
eci:load('data/_eci.lua')
|
eci:load('data/_eci.lua')
|
||||||
igi:load('data/_igi.lua')
|
igi:load('data/_igi.lua')
|
||||||
it_:load('data/_it.lua')
|
it_:load('data/_it.lua')
|
||||||
|
@ -108,6 +108,14 @@ elseif oot then
|
||||||
for i, fm in ipairs(fms) do fm.oot = true end
|
for i, fm in ipairs(fms) do fm.oot = true end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ef_wipe()
|
||||||
|
for _, fm in ipairs(fms) do
|
||||||
|
for i = 0, fm.len-1 do
|
||||||
|
W1(fm.begin+i, 0)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
while mm or oot do
|
while mm or oot do
|
||||||
for i, fm in ipairs(fms) do
|
for i, fm in ipairs(fms) do
|
||||||
fm:diff()
|
fm:diff()
|
||||||
|
|
Loading…
Reference in a new issue