mirror of
https://github.com/notwa/mm
synced 2024-11-05 03:39:02 -08:00
count scene setups
This commit is contained in:
parent
72f4095761
commit
429ef4af89
1 changed files with 6 additions and 5 deletions
|
@ -149,16 +149,17 @@ function dump_room(start, addr)
|
||||||
print(buf)
|
print(buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local setups = 1
|
||||||
if alt_header_list then
|
if alt_header_list then
|
||||||
local addr = alt_header_list
|
local addr = alt_header_list
|
||||||
local i = 1
|
|
||||||
while R1(addr) == 0x03 do
|
while R1(addr) == 0x03 do
|
||||||
printf("# setup: %02X", i)
|
printf("# setup: %02X", setups)
|
||||||
dump_room(start, start + R3(addr+1))
|
dump_room(start, start + R3(addr+1))
|
||||||
addr = addr + 4
|
addr = addr + 4
|
||||||
i = i + 1
|
setups = setups + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
return setups
|
||||||
end
|
end
|
||||||
|
|
||||||
local last_addr
|
local last_addr
|
||||||
|
@ -167,8 +168,8 @@ while true do
|
||||||
if addr and addr ~= last_addr then
|
if addr and addr ~= last_addr then
|
||||||
console.clear()
|
console.clear()
|
||||||
print('# setup: 00')
|
print('# setup: 00')
|
||||||
dump_room(addr)
|
local setups = dump_room(addr)
|
||||||
print('')
|
printf("# total %2i setups", setups)
|
||||||
end
|
end
|
||||||
last_addr = addr
|
last_addr = addr
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue