Misc stuff needed for unreleased unfunctional stuff

develop
Warmist 2012-04-28 22:20:49 +03:00
parent c17529a794
commit 3d277823eb
1 changed files with 6 additions and 0 deletions

@ -99,6 +99,7 @@ function SetExecute(pos)
UpdateRanges()
local reg=GetRegionIn(pos)
reg.execute=true
reg["write"]=true
Process.setPermisions(reg,reg) -- TODO maybe make a page with only execute permisions or sth
end
-- engine bindings
@ -224,6 +225,11 @@ function engine.LoadModData(file)
end
return T2
end
function engine.FindMarkerCall(moddata,name)
if moddata.symbols[name] ~=nil then
return moddata.symbols[name]+1
end
end
function engine.FindMarker(moddata,name)
if moddata.symbols[name] ~=nil then
return engine.findmarker(0xDEADBEEF,moddata.data,moddata.size,moddata.symbols[name])