view src/common/vbalua.h @ 312:2060219691fa

Added more to the rom map.
author Dylan Holmes <ocsenave@gmail.com>
date Sun, 01 Apr 2012 21:47:04 -0500
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef VBA_LUA_H
2 #define VBA_LUA_H
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 enum LuaCallID
9 {
10 LUACALL_BEFOREEMULATION,
11 LUACALL_AFTEREMULATION,
12 LUACALL_BEFOREEXIT,
14 LUACALL_COUNT
15 };
16 void CallRegisteredLuaFunctions(LuaCallID calltype);
18 enum LuaMemHookType
19 {
20 LUAMEMHOOK_WRITE,
21 LUAMEMHOOK_READ,
22 LUAMEMHOOK_EXEC,
23 LUAMEMHOOK_WRITE_SUB,
24 LUAMEMHOOK_READ_SUB,
25 LUAMEMHOOK_EXEC_SUB,
27 LUAMEMHOOK_COUNT
28 };
29 void CallRegisteredLuaMemHook(unsigned int address, int size, unsigned int value, LuaMemHookType hookType);
31 // Just forward function declarations
33 void VBALuaFrameBoundary();
34 int VBALoadLuaCode(const char *filename);
35 int VBAReloadLuaCode();
36 void VBALuaStop();
37 int VBALuaRunning();
39 int VBALuaUsingJoypad(int);
40 int VBALuaReadJoypad(int);
41 int VBALuaSpeed();
42 bool8 VBALuaRerecordCountSkip();
44 void VBALuaGui(uint8 *screen, int ppl, int width, int height);
45 void VBALuaClearGui();
47 char* VBAGetLuaScriptName();
49 // And some interesting REVERSE declarations!
50 char *VBAGetFreezeFilename(int slot);
52 #endif // VBA_LUA_H