Make saveload system extensible
|Reported by:||fingolfin||Owned by:||fingolfin|
This patch (as discussed on IRC) implements versioning on the fields store in save games. This way, it becomes easy to remove/add/grow fields in the save game, whil still being able to load older save games.
I can load all my old V8 & V9 save games (as well as all the savegames here that are labeled as V7 - due to a bug, all versions of ScummVM up to and including 0.3.0 would under certain conditions save states as V8, sometimes even incorrectly marked as V7).
The new save game format V10 is in effect a few KB bigger than the old. The reason is that we didn't save a lot things that should have been saved - e.g. we only saved 64 of the 256 bytes of each actor's palette.
I would check this in directly, but I think some people should test it independently first, as it is always risky to mess with the save/load system.
Ticket imported from: #650085. Ticket imported from: patches/247.