WAGE: StringList Replaced by StringArray...
Signed-off-by: Eugene Sandulenko <sev@scummvm.org>
This commit is contained in:
parent
9d448131c5
commit
0ee543b9fb
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ bool WageMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGame
|
|||
SaveStateList WageMetaEngine::listSaves(const char *target) const {
|
||||
const uint32 WAGEflag = MKTAG('W','A','G','E');
|
||||
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
|
||||
Common::StringList filenames;
|
||||
Common::StringArray filenames;
|
||||
char saveDesc[31];
|
||||
Common::String pattern = target;
|
||||
pattern += ".???";
|
||||
|
@ -147,7 +147,7 @@ SaveStateList WageMetaEngine::listSaves(const char *target) const {
|
|||
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
|
||||
|
||||
SaveStateList saveList;
|
||||
for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
|
||||
for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
|
||||
// Obtain the last 3 digits of the filename, since they correspond to the save slot
|
||||
int slotNum = atoi(file->c_str() + file->size() - 3);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue