Fixing a bug in the V4 save file handler, produced by a "neat" feature in Woodruff: The saves remember their position within the list and use that information to load the "correct" screen properties, making it impossible to load reordered saves correctly -.-

svn-id: r42679
This commit is contained in:
Sven Hesse 2009-07-23 19:50:13 +00:00
parent 33929b5248
commit 01b8320367
2 changed files with 22 additions and 2 deletions

View file

@ -289,6 +289,8 @@ protected:
GameHandler(GobEngine *vm, const char *target);
~GameHandler();
int getLastSlot() const;
int32 getSize();
bool load(int16 dataVar, int32 size, int32 offset);
bool save(int16 dataVar, int32 size, int32 offset);
@ -317,6 +319,8 @@ protected:
File *_slotFile;
int _lastSlot;
SaveReader *_reader;
SaveWriter *_writer;