summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/luaengine.h
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-04-15 11:35:21 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-04-15 11:40:34 -0500
commitc3735cd12c56dc850e9ca6072dd2fecfe0d40f5f (patch)
tree28944a612e6b3b04835ac91f5420be65c1c2d042 /src/emu/luaengine.h
parentaf31c6a20e841016b4c24bc0e6301ba55fd6713e (diff)
plugins/cheat: fix some stuff (nw)
Diffstat (limited to 'src/emu/luaengine.h')
-rw-r--r--src/emu/luaengine.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/emu/luaengine.h b/src/emu/luaengine.h
index aaa774d00e6..721f9728c7b 100644
--- a/src/emu/luaengine.h
+++ b/src/emu/luaengine.h
@@ -63,6 +63,9 @@ public:
void attach_notifiers();
void on_frame_done();
+ int compile_with_env(const char *env, const char *script);
+ void run(const char *env, int ref);
+
private:
struct hook {
lua_State *L;
@@ -153,8 +156,6 @@ private:
int l_popmessage(lua_State *L);
int l_logerror(lua_State *L);
};
- static UINT8 read_direct_byte(address_space &space, offs_t addr);
- static void write_direct_byte(address_space &space, offs_t addr, UINT8 byte);
struct lua_addr_space {
template<typename T> int l_mem_read(lua_State *L);
template<typename T> int l_mem_write(lua_State *L);
@@ -194,8 +195,6 @@ private:
static luabridge::LuaRef l_memory_get_banks(const memory_manager *m);
static luabridge::LuaRef l_memory_get_regions(const memory_manager *m);
- static UINT8 read_region_byte(memory_region &region, offs_t addr);
- static void write_region_byte(memory_region &region, offs_t addr, UINT8 byte);
struct lua_memory_region {
template<typename T> int l_region_read(lua_State *L);
template<typename T> int l_region_write(lua_State *L);