Move persistent memory outside of the RAM #483
This commit is contained in:
1 parent
bac3a9c3b6
commit
9786c6dcc5
8 files changed
+26
-25
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user