TINSEL: cleanup
svn-id: r53991
This commit is contained in:
parent
e67ab53d89
commit
5c49ae8a9c
2 changed files with 15 additions and 13 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue