comparison src/common/vbalua.h @ 19:5e8e5083da94

brought in common and gba, fixed problems with outdated Makefile.am files in both of these packages
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 14:33:52 -0600
parents f9f4f1b99eed
children
comparison
equal deleted inserted replaced
18:ac56489c2ca6 19:5e8e5083da94
1 #ifndef VBA_LUA_H
2 #define VBA_LUA_H
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7
8 enum LuaCallID
9 {
10 LUACALL_BEFOREEMULATION,
11 LUACALL_AFTEREMULATION,
12 LUACALL_BEFOREEXIT,
13
14 LUACALL_COUNT
15 };
16 void CallRegisteredLuaFunctions(LuaCallID calltype);
17
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,
26
27 LUAMEMHOOK_COUNT
28 };
29 void CallRegisteredLuaMemHook(unsigned int address, int size, unsigned int value, LuaMemHookType hookType);
30
31 // Just forward function declarations
32
33 void VBALuaFrameBoundary();
34 int VBALoadLuaCode(const char *filename);
35 int VBAReloadLuaCode();
36 void VBALuaStop();
37 int VBALuaRunning();
38
39 int VBALuaUsingJoypad(int);
40 int VBALuaReadJoypad(int);
41 int VBALuaSpeed();
42 bool8 VBALuaRerecordCountSkip();
43
44 void VBALuaGui(uint8 *screen, int ppl, int width, int height);
45 void VBALuaClearGui();
46
47 char* VBAGetLuaScriptName();
48
49 // And some interesting REVERSE declarations!
50 char *VBAGetFreezeFilename(int slot);
51
52 #endif // VBA_LUA_H