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 {
|
SaveStateList WageMetaEngine::listSaves(const char *target) const {
|
||||||
const uint32 WAGEflag = MKTAG('W','A','G','E');
|
const uint32 WAGEflag = MKTAG('W','A','G','E');
|
||||||
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
|
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
|
||||||
Common::StringList filenames;
|
Common::StringArray filenames;
|
||||||
char saveDesc[31];
|
char saveDesc[31];
|
||||||
Common::String pattern = target;
|
Common::String pattern = target;
|
||||||
pattern += ".???";
|
pattern += ".???";
|
||||||
|
@ -147,7 +147,7 @@ SaveStateList WageMetaEngine::listSaves(const char *target) const {
|
||||||
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
|
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
|
||||||
|
|
||||||
SaveStateList saveList;
|
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
|
// Obtain the last 3 digits of the filename, since they correspond to the save slot
|
||||||
int slotNum = atoi(file->c_str() + file->size() - 3);
|
int slotNum = atoi(file->c_str() + file->size() - 3);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue