comparison src/common/vbalua.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
comparison
equal deleted inserted replaced
0:8ced16adf2e1 1:f9f4f1b99eed
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