diff options
| author | Warmist | 2012-04-28 22:20:49 +0300 |
|---|---|---|
| committer | Warmist | 2012-04-28 22:20:49 +0300 |
| commit | 3d277823ebe5f0d140f11e28b427df83d03b4fde (patch) | |
| tree | 174ba546b964253e59393644f762374aef89c1f3 /plugins/Dfusion | |
| parent | c17529a79442d4a44dc13bf7516ededeaf7eb823 (diff) | |
| download | dfhack-3d277823ebe5f0d140f11e28b427df83d03b4fde.tar.gz dfhack-3d277823ebe5f0d140f11e28b427df83d03b4fde.tar.bz2 dfhack-3d277823ebe5f0d140f11e28b427df83d03b4fde.tar.xz | |
Misc stuff needed for unreleased unfunctional stuff
Diffstat (limited to 'plugins/Dfusion')
| -rw-r--r-- | plugins/Dfusion/luafiles/common.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Dfusion/luafiles/common.lua b/plugins/Dfusion/luafiles/common.lua index 7e41dc4e..347b27c0 100644 --- a/plugins/Dfusion/luafiles/common.lua +++ b/plugins/Dfusion/luafiles/common.lua @@ -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]) |
