[Scummvm-devel] Sword25 save system

Willem Jan Palenstijn wjp at usecode.org
Wed Aug 24 16:11:26 CEST 2011


On Wed, Aug 24, 2011 at 12:48:29PM +0100, Eugene Sandulenko wrote:
> So, the question is. Should we rewrite whole save system for Sword25,
> or claim that the saves are not interchangeable between platform with
> different pointer size (32bit vs 64bit) and probably with different
> endianness too.
> 
> Another possible alternative which could potentially help with the
> rewrite is to drop Lua state altogether and restore its state with
> another Lua script which we will inject into the engine.

I would prefer this last option, although I have no idea how much work it would
be, or if we even have the sword25 expertise necessary to actually implement it.
It would free us from (savegame-related) dependencies on any specific LUA version
and having to fiddle with LUA internals overly much, and guarantee portability.

If the game's LUA scripts aren't written with this type of saving in mind, it
might be tricky to do, though. Does anybody have any insight into this?


-Willem Jan





More information about the Scummvm-devel mailing list