changed params order for sync() api - section,bank,tocart

added 'pal' section to sync()
This commit is contained in:
BADIM-PC\Vadim
2017-12-15 16:01:51 +03:00
parent f87414d050
commit c20fa09c0f
4 changed files with 32 additions and 12 deletions

View File

@@ -747,21 +747,21 @@ static s32 lua_sync(lua_State* lua)
{
tic_mem* memory = (tic_mem*)getLuaMachine(lua);
bool toCart = true;
bool toCart = false;
const char* section = NULL;
s32 bank = 0;
if(lua_gettop(lua) >= 1)
{
toCart = lua_toboolean(lua, 1);
section = lua_tostring(lua, 1);
if(lua_gettop(lua) >= 2)
{
section = lua_tostring(lua, 2);
bank = getLuaNumber(lua, 2);
if(lua_gettop(lua) >= 3)
{
bank = getLuaNumber(lua, 3);
toCart = lua_toboolean(lua, 3);
}
}
}