aboutsummaryrefslogtreecommitdiff
path: root/scumm/dialogs.cpp
diff options
context:
space:
mode:
authorMarcus Comstedt2002-12-17 01:15:13 +0000
committerMarcus Comstedt2002-12-17 01:15:13 +0000
commit83da387eef75aa1140c81bd9e3e002ae3ea83864 (patch)
treea66d39aca4ef689a33df4d7ca374e4ad7ebdc817 /scumm/dialogs.cpp
parentfadf55aad038286803cb2c1d0b5e75aca0ba3a02 (diff)
downloadscummvm-rg350-83da387eef75aa1140c81bd9e3e002ae3ea83864.tar.gz
scummvm-rg350-83da387eef75aa1140c81bd9e3e002ae3ea83864.tar.bz2
scummvm-rg350-83da387eef75aa1140c81bd9e3e002ae3ea83864.zip
New savefile backend system (bye bye NONSTANDARD_SAVE...)
svn-id: r6007
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r--scumm/dialogs.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp
index c115295ca1..e676c48775 100644
--- a/scumm/dialogs.cpp
+++ b/scumm/dialogs.cpp
@@ -406,12 +406,20 @@ void SaveLoadDialog::fillList()
ScummVM::StringList l;
char name[32];
int i = _saveMode ? 1 : 0;
+ bool avail_saves[81];
+ SaveFileManager *mgr = _scumm->_system->get_savefile_manager();
+ _scumm->listSavegames(avail_saves, 81, mgr);
for (; i <= 80; i++) { // 80 - got this value from the old GUI
- _scumm->getSavegameName(i, name);
+ if(avail_saves[i])
+ _scumm->getSavegameName(i, name, mgr);
+ else
+ name[0] = 0;
l.push_back(name);
}
+ delete mgr;
+
_savegameList->setList(l);
_savegameList->setNumberingMode(_saveMode ? kListNumberingOne : kListNumberingZero);
}