mirror of
https://github.com/libretro/FBNeo.git
synced 2025-02-13 21:59:35 +00:00
lua fix for old compiler pt.2
This commit is contained in:
parent
dd8a287f8e
commit
409cddc0e4
@ -35,16 +35,17 @@ UINT8 macroSystemLuaHotkey7 = 0;
|
||||
UINT8 macroSystemLuaHotkey8 = 0;
|
||||
UINT8 macroSystemLuaHotkey9 = 0;
|
||||
|
||||
std::vector<UINT8*> lua_hotkeys = {
|
||||
¯oSystemLuaHotkey1,
|
||||
¯oSystemLuaHotkey2,
|
||||
¯oSystemLuaHotkey3,
|
||||
¯oSystemLuaHotkey4,
|
||||
¯oSystemLuaHotkey5,
|
||||
¯oSystemLuaHotkey6,
|
||||
¯oSystemLuaHotkey7,
|
||||
¯oSystemLuaHotkey8,
|
||||
¯oSystemLuaHotkey9
|
||||
UINT8 *lua_hotkeys[] = {
|
||||
¯oSystemLuaHotkey1,
|
||||
¯oSystemLuaHotkey2,
|
||||
¯oSystemLuaHotkey3,
|
||||
¯oSystemLuaHotkey4,
|
||||
¯oSystemLuaHotkey5,
|
||||
¯oSystemLuaHotkey6,
|
||||
¯oSystemLuaHotkey7,
|
||||
¯oSystemLuaHotkey8,
|
||||
¯oSystemLuaHotkey9,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
@ -362,7 +363,7 @@ static void GameInpInitMacros()
|
||||
nMacroCount++;
|
||||
pgi++;
|
||||
|
||||
for (int hotkey_num = 0; hotkey_num < lua_hotkeys.size(); hotkey_num++) {
|
||||
for (int hotkey_num = 0; lua_hotkeys[hotkey_num] != NULL; hotkey_num++) {
|
||||
char hotkey_name[40];
|
||||
sprintf(hotkey_name, "Lua Hotkey %d", (hotkey_num + 1));
|
||||
pgi->nInput = GIT_MACRO_AUTO;
|
||||
|
Loading…
x
Reference in New Issue
Block a user