|
|
@ -11,15 +11,15 @@ function GetTextRegion()
|
|
|
|
-- print(string.format("%d %s->%s",k,tostring(k2),tostring(v2)))
|
|
|
|
-- print(string.format("%d %s->%s",k,tostring(k2),tostring(v2)))
|
|
|
|
--end
|
|
|
|
--end
|
|
|
|
--local num
|
|
|
|
--local num
|
|
|
|
--num=0
|
|
|
|
--flgs=""
|
|
|
|
--if(v["read"])then num=num+1 end
|
|
|
|
--if(v["read"])then flgs=flgs..'r' end
|
|
|
|
--if(v["write"])then num=num+10 end
|
|
|
|
--if(v["write"])then flgs=flgs..'w' end
|
|
|
|
--if(v["execute"]) then num=num+100 end
|
|
|
|
--if(v["execute"]) then flgs=flgs..'e' end
|
|
|
|
--if num>=100 then
|
|
|
|
--if num>=100 then
|
|
|
|
--print(string.format("%d %x->%x %s %d",k,v["start"],v["end"],v.name or "",num))
|
|
|
|
--print(string.format("%d %x->%x %s %s",k,v["start"],v["end"],v.name or "",flgs))
|
|
|
|
--end
|
|
|
|
--end
|
|
|
|
local pos=string.find(v.name,".text") or string.find(v.name,"libs/Dwarf_Fortress")
|
|
|
|
local pos=string.find(v.name,".text") or string.find(v.name,"libs/Dwarf_Fortress")
|
|
|
|
if(pos~=nil) then
|
|
|
|
if(pos~=nil) and v["execute"] then
|
|
|
|
return v;
|
|
|
|
return v;
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|