sync() api changes #410

This commit is contained in:
BADIM-PC\Vadim committed 2017-11-21 20:10:51 +03:00
1 parent 55a6728db2
commit 72e9e449a0
2 files changed
+9 -2

No files matched your search

+6 -1
View File
@@ -745,7 +745,12 @@ static s32 lua_sync(lua_State* lua)
{
tic_mem* memory = (tic_mem*)getLuaMachine(lua);
memory->api.sync(memory, true);
bool toCart = true;
if(lua_gettop(lua) >= 1)
toCart = lua_toboolean(lua, 1);
memory->api.sync(memory, toCart);
return 0;
}