mirror of
https://github.com/notwa/mm
synced 2024-05-18 05:23:22 -07:00
update lua text monitor for previous commit
This commit is contained in:
parent
3bdd305fb6
commit
9e39cf0f4c
|
@ -1,14 +1,17 @@
|
||||||
-- use with inject.lua on O EUDB MQ
|
-- use with inject.lua on O EUDB MQ
|
||||||
require "lib.setup"
|
require "lib.setup"
|
||||||
require "boilerplate"
|
require "boilerplate"
|
||||||
|
require "addrs.init"
|
||||||
|
|
||||||
local buffer = 0x700180
|
local buffer = 0x700700
|
||||||
|
|
||||||
local vfc = A(0x168960, 4)
|
local vfc = A(0x168960, 4)
|
||||||
|
|
||||||
-- $ tail -f oot\ debug.txt | iconv -f euc-jp
|
-- $ tail -f oot\ debug.txt | iconv -f euc-jp
|
||||||
local f = io.open('oot debug.txt', 'w+b')
|
local f = io.open('oot debug.txt', 'w+b')
|
||||||
|
|
||||||
|
local ignore_vframes = true
|
||||||
|
|
||||||
while version == "O EUDB MQ" do
|
while version == "O EUDB MQ" do
|
||||||
local pos = buffer
|
local pos = buffer
|
||||||
local str = ''
|
local str = ''
|
||||||
|
@ -23,11 +26,21 @@ while version == "O EUDB MQ" do
|
||||||
end
|
end
|
||||||
f:write(str)
|
f:write(str)
|
||||||
f:flush()
|
f:flush()
|
||||||
local old = vfc()
|
if ignore_vframes then
|
||||||
for i=1,30 do
|
if R4(0x7006FC) == 0 then
|
||||||
|
W4(0x7006F8, 0x80700700)
|
||||||
|
W1(0x700700, 0)
|
||||||
|
else
|
||||||
|
print('buffer in use')
|
||||||
|
end
|
||||||
emu.frameadvance()
|
emu.frameadvance()
|
||||||
local new = vfc()
|
else
|
||||||
if new ~= old then break end
|
local old = vfc()
|
||||||
|
for i=1,30 do
|
||||||
|
emu.frameadvance()
|
||||||
|
local new = vfc()
|
||||||
|
if new ~= old then break end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user