add INCLUDE_LUA_SUPPORT tag to makefile
This commit is contained in:
parent
b19f29d342
commit
36f696eafc
3
makefile
3
makefile
|
@ -39,6 +39,9 @@ INCLUDE_7Z_SUPPORT = 1
|
|||
# Include AVI recording support (uses Video For Windows)
|
||||
INCLUDE_AVI_RECORDING = 1
|
||||
|
||||
# Include LUA support (on Windows Standalone, LUA is enabled regardless)
|
||||
#INCLUDE_LUA_SUPPORT = 1
|
||||
|
||||
# Include symbols and other debug information in the executable
|
||||
#SYMBOL = 1
|
||||
|
||||
|
|
|
@ -61,6 +61,9 @@ typedef struct tagIMAGE {
|
|||
|
||||
#ifndef __LIBRETRO__
|
||||
#include "interface.h"
|
||||
#endif
|
||||
|
||||
#if defined (INCLUDE_LUA_SUPPORT) || defined (BUILD_WIN32)
|
||||
#include "luaengine.h"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1349,7 +1349,7 @@ static int joypad_set(lua_State *L) {
|
|||
|
||||
// Set up for taking control of the indicated controller
|
||||
lua_joypads_used = 1;
|
||||
memset(lua_joypads,0,0x0100);
|
||||
memset(lua_joypads,0,sizeof(lua_joypads));
|
||||
|
||||
// Update the values of all the inputs
|
||||
for (i = 0, pgi = GameInp; i < nGameInpCount; i++, pgi++) {
|
||||
|
@ -4088,7 +4088,7 @@ UINT32 FBA_LuaReadJoypad() {
|
|||
}
|
||||
|
||||
lua_joypads_used = 0;
|
||||
memset(lua_joypads,0,0x0100);
|
||||
memset(lua_joypads,0,sizeof(lua_joypads));
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -418,7 +418,9 @@ INT32 VidFrameCallback(bool bRedraw) // Called from blitter (VidFrame()
|
|||
VidDoTransTopVidImage();
|
||||
}
|
||||
|
||||
#if defined (BUILD_WIN32) || defined (INCLUDE_LUA_SUPPORT)
|
||||
FBA_LuaGui((unsigned char*)pVidImage, nVidImageWidth, nVidImageHeight, nVidImageBPP, nVidImagePitch);
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue