[Scummvm-cvs-logs] SF.net SVN: scummvm:[53991] scummvm/trunk/engines/tinsel
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sun Oct 31 22:50:48 CET 2010
Revision: 53991
http://scummvm.svn.sourceforge.net/scummvm/?rev=53991&view=rev
Author: fingolfin
Date: 2010-10-31 21:50:48 +0000 (Sun, 31 Oct 2010)
Log Message:
-----------
TINSEL: cleanup
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/saveload.cpp
scummvm/trunk/engines/tinsel/savescn.h
Modified: scummvm/trunk/engines/tinsel/saveload.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/saveload.cpp 2010-10-31 21:50:20 UTC (rev 53990)
+++ scummvm/trunk/engines/tinsel/saveload.cpp 2010-10-31 21:50:48 UTC (rev 53991)
@@ -106,6 +106,18 @@
#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 @@
}
/**
- * 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?
Modified: scummvm/trunk/engines/tinsel/savescn.h
===================================================================
--- scummvm/trunk/engines/tinsel/savescn.h 2010-10-31 21:50:20 UTC (rev 53990)
+++ scummvm/trunk/engines/tinsel/savescn.h 2010-10-31 21:50:48 UTC (rev 53991)
@@ -40,19 +40,9 @@
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
+ MAX_SAVED_FILES = 100
};
-struct SFILES {
- char name[FNAMELEN];
- char desc[SG_DESC_LEN + 2];
- TimeDate dateTime;
-};
-
struct SAVED_DATA {
SCNHANDLE SavedSceneHandle; // Scene handle
SCNHANDLE SavedBgroundHandle; // Background handle
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list