Mercurial > vba-clojure
annotate src/common/vbalua.h @ 439:71878fbc277b
saving progress.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 26 Apr 2012 03:00:58 -0500 |
parents | f9f4f1b99eed |
children |
rev | line source |
---|---|
rlm@1 | 1 #ifndef VBA_LUA_H |
rlm@1 | 2 #define VBA_LUA_H |
rlm@1 | 3 |
rlm@1 | 4 #if _MSC_VER > 1000 |
rlm@1 | 5 #pragma once |
rlm@1 | 6 #endif // _MSC_VER > 1000 |
rlm@1 | 7 |
rlm@1 | 8 enum LuaCallID |
rlm@1 | 9 { |
rlm@1 | 10 LUACALL_BEFOREEMULATION, |
rlm@1 | 11 LUACALL_AFTEREMULATION, |
rlm@1 | 12 LUACALL_BEFOREEXIT, |
rlm@1 | 13 |
rlm@1 | 14 LUACALL_COUNT |
rlm@1 | 15 }; |
rlm@1 | 16 void CallRegisteredLuaFunctions(LuaCallID calltype); |
rlm@1 | 17 |
rlm@1 | 18 enum LuaMemHookType |
rlm@1 | 19 { |
rlm@1 | 20 LUAMEMHOOK_WRITE, |
rlm@1 | 21 LUAMEMHOOK_READ, |
rlm@1 | 22 LUAMEMHOOK_EXEC, |
rlm@1 | 23 LUAMEMHOOK_WRITE_SUB, |
rlm@1 | 24 LUAMEMHOOK_READ_SUB, |
rlm@1 | 25 LUAMEMHOOK_EXEC_SUB, |
rlm@1 | 26 |
rlm@1 | 27 LUAMEMHOOK_COUNT |
rlm@1 | 28 }; |
rlm@1 | 29 void CallRegisteredLuaMemHook(unsigned int address, int size, unsigned int value, LuaMemHookType hookType); |
rlm@1 | 30 |
rlm@1 | 31 // Just forward function declarations |
rlm@1 | 32 |
rlm@1 | 33 void VBALuaFrameBoundary(); |
rlm@1 | 34 int VBALoadLuaCode(const char *filename); |
rlm@1 | 35 int VBAReloadLuaCode(); |
rlm@1 | 36 void VBALuaStop(); |
rlm@1 | 37 int VBALuaRunning(); |
rlm@1 | 38 |
rlm@1 | 39 int VBALuaUsingJoypad(int); |
rlm@1 | 40 int VBALuaReadJoypad(int); |
rlm@1 | 41 int VBALuaSpeed(); |
rlm@1 | 42 bool8 VBALuaRerecordCountSkip(); |
rlm@1 | 43 |
rlm@1 | 44 void VBALuaGui(uint8 *screen, int ppl, int width, int height); |
rlm@1 | 45 void VBALuaClearGui(); |
rlm@1 | 46 |
rlm@1 | 47 char* VBAGetLuaScriptName(); |
rlm@1 | 48 |
rlm@1 | 49 // And some interesting REVERSE declarations! |
rlm@1 | 50 char *VBAGetFreezeFilename(int slot); |
rlm@1 | 51 |
rlm@1 | 52 #endif // VBA_LUA_H |