aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua_unpersist.cpp
AgeCommit message (Collapse)Author
2017-01-28SWORD25: Use direct integer index into indexTblWillem Jan Palenstijn
This matches the behaviour of the Pluto rewrite Eris, and avoids casting the integer indices to void *. I verified this code by running this method in parallel with the current lightuserdata/void* approach and asserting the retrieved objects were identical when loading a savegame.
2016-02-02SWORD25: Use more appropriate function for growing the stackWillem Jan Palenstijn
The call to lua_growstack in unpersistThread would unconditionally at least double the size of the stack. This caused memory usage to grow exponentially (literally) with the number of serialized threads. Bugs #6977, #6999.
2014-12-30SWORD25: Change function names to use persist instead of serializeRichieSams
Same argument as in 97c35714ce3986b99848a780f6b195a63f8910b7. To match the rest of the SWORD25 code base
2014-12-30SWORD25: Add Pluto copyright message to new persistence codeRichieSams
Since the code is based off the Pluto code
2014-12-30SWORD25: Rename double serialization file to better represent what it isRichieSams
AKA functions, rather than a class
2014-12-30SWORD25: Rename lua serialization functions to use 'persist' in order to ↵RichieSams
match the rest of the engine