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