aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorMax Horn2010-10-31 21:50:48 +0000
committerMax Horn2010-10-31 21:50:48 +0000
commit5c49ae8a9c86fcab1ca7a28111517757e3b2c2ee (patch)
treed6f76a9808f842333eaa35a7b004f72f112dfc5c /engines/tinsel
parente67ab53d89052f9100a1b4a9f0ace44c97beb20d (diff)
downloadscummvm-rg350-5c49ae8a9c86fcab1ca7a28111517757e3b2c2ee.tar.gz
scummvm-rg350-5c49ae8a9c86fcab1ca7a28111517757e3b2c2ee.tar.bz2
scummvm-rg350-5c49ae8a9c86fcab1ca7a28111517757e3b2c2ee.zip
TINSEL: cleanup
svn-id: r53991
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/saveload.cpp16
-rw-r--r--engines/tinsel/savescn.h12
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 {