diff options
Diffstat (limited to 'engines/tinsel')
-rw-r--r-- | engines/tinsel/saveload.cpp | 16 | ||||
-rw-r--r-- | engines/tinsel/savescn.h | 12 |
2 files changed, 15 insertions, 13 deletions
diff --git a/engines/tinsel/saveload.cpp b/engines/tinsel/saveload.cpp index b010ad1fcb..bb77c962a2 100644 --- a/engines/tinsel/saveload.cpp +++ b/engines/tinsel/saveload.cpp @@ -106,6 +106,18 @@ enum { #define SAVEGAME_ID (TinselV2 ? (uint32)DW2_SAVEGAME_ID : (uint32)DW1_SAVEGAME_ID) +enum { + // FIXME: Save file names in ScummVM can be longer than 8.3, overflowing the + // name field in savedFiles. Raising it to 256 as a preliminary fix. + FNAMELEN = 256 // 8.3 +}; + +struct SFILES { + char name[FNAMELEN]; + char desc[SG_DESC_LEN + 2]; + TimeDate dateTime; +}; + //----------------- LOCAL GLOBAL DATA -------------------- static int numSfiles = 0; @@ -318,9 +330,9 @@ static int cmpTimeDate(const TimeDate &a, const TimeDate &b) { } /** - * Interrogate the current DOS directory for saved game files. + * Compute a list of all available saved game files. * Store the file details, ordered by time, in savedFiles[] and return - * the number of files found). + * the number of files found. */ int getList(Common::SaveFileManager *saveFileMan, const Common::String &target) { // No change since last call? diff --git a/engines/tinsel/savescn.h b/engines/tinsel/savescn.h index f0927baae3..271cdd5eb1 100644 --- a/engines/tinsel/savescn.h +++ b/engines/tinsel/savescn.h @@ -40,17 +40,7 @@ namespace Tinsel { enum { SG_DESC_LEN = 40, // Max. saved game description length - MAX_SAVED_FILES = 100, - - // FIXME: Save file names in ScummVM can be longer than 8.3, overflowing the - // name field in savedFiles. Raising it to 256 as a preliminary fix. - FNAMELEN = 256 // 8.3 -}; - -struct SFILES { - char name[FNAMELEN]; - char desc[SG_DESC_LEN + 2]; - TimeDate dateTime; + MAX_SAVED_FILES = 100 }; struct SAVED_DATA { |