2015-12-26 23:22:15 -08:00
|
|
|
-- use with inject.lua on O EUDB MQ
|
2016-01-12 15:54:42 -08:00
|
|
|
require "lib.setup"
|
2015-12-26 19:06:50 -08:00
|
|
|
require "boilerplate"
|
|
|
|
|
2016-04-14 17:02:37 -07:00
|
|
|
local buffer = 0x700180
|
2015-12-26 19:06:50 -08:00
|
|
|
|
|
|
|
local vfc = A(0x168960, 4)
|
|
|
|
|
2015-12-26 23:22:15 -08:00
|
|
|
-- $ tail -f oot\ debug.txt | iconv -f euc-jp
|
|
|
|
local f = io.open('oot debug.txt', 'w+b')
|
|
|
|
|
|
|
|
while version == "O EUDB MQ" do
|
2015-12-26 19:06:50 -08:00
|
|
|
local pos = buffer
|
|
|
|
local str = ''
|
2015-12-26 23:22:15 -08:00
|
|
|
local fmt = '%c'
|
2015-12-26 19:06:50 -08:00
|
|
|
while true do
|
|
|
|
local b = R1(pos)
|
|
|
|
pos = pos + 1
|
|
|
|
if b == 0 then
|
|
|
|
break
|
|
|
|
end
|
2015-12-26 23:22:15 -08:00
|
|
|
str = str..string.char(b)
|
2015-12-26 19:06:50 -08:00
|
|
|
end
|
2015-12-26 23:22:15 -08:00
|
|
|
f:write(str)
|
|
|
|
f:flush()
|
2015-12-26 19:06:50 -08:00
|
|
|
local old = vfc()
|
|
|
|
for i=1,30 do
|
|
|
|
emu.frameadvance()
|
|
|
|
local new = vfc()
|
|
|
|
if new ~= old then break end
|
|
|
|
end
|
|
|
|
end
|
2015-12-26 23:22:15 -08:00
|
|
|
|
|
|
|
f:close()
|