BS1: Save/load overhaul
|Reported by:||bluegr||Owned by:||bluegr|
|Cc:||Game:||Broken Sword 1|
This is a rewrite of the way save games are handled in BS1. The current save system suffers from many problems: - All save games have the same names, i.e. "savegame.001", "savegame.002" and so on. This makes it impossible to use save games for multiple versions of the game (e.g. English and German) - An index file is used for the save descriptions, which is a bad practice: it can get out of sync, and it makes copying of save games across systems a complete nightmare - There is no save game versioning (this makes any possible additions to the save format problematic) - There is no save header, to verify that the save is correct
The attached patch does the following: - Removes the need for an index file - save descriptions are stored within the save files themselves - Names save files consistently, based on the game id, like in other engines - Adds a save game version field - Provides functionality to convert the old format to the new one - Adds GMM functionality to delete save states - Adds meta info functionality (thumbnails, though it doesn't work yet) and creation date/time
Saving/loading from the GMM is included as well, but it's disabled as I've had crashes when trying to load a game
Ticket imported from: #2307224. Ticket imported from: patches/1044.