Move persistent memory outside of the RAM #483

This commit is contained in:
BADIM-PC\Vadim
2017-12-27 12:51:13 +03:00
parent bac3a9c3b6
commit 9786c6dcc5
8 changed files with 26 additions and 25 deletions

View File

@@ -993,11 +993,11 @@ static s32 lua_pmem(lua_State *lua)
if(index < TIC_PERSISTENT_SIZE)
{
s32 val = memory->ram.persistent.data[index];
s32 val = memory->persistent.data[index];
if(top >= 2)
{
memory->ram.persistent.data[index] = getLuaNumber(lua, 2);
memory->persistent.data[index] = getLuaNumber(lua, 2);
}
lua_pushinteger(lua, val);