COMMON: Get rid of Common::StringList
svn-id: r48287
This commit is contained in:
parent
81a698d0a0
commit
cac0ac66e2
54 changed files with 108 additions and 116 deletions
|
@ -190,7 +190,7 @@ bool SagaMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGame
|
|||
|
||||
SaveStateList SagaMetaEngine::listSaves(const char *target) const {
|
||||
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
|
||||
Common::StringList filenames;
|
||||
Common::StringArray filenames;
|
||||
char saveDesc[SAVE_TITLE_SIZE];
|
||||
Common::String pattern = target;
|
||||
pattern += ".s??";
|
||||
|
@ -200,7 +200,7 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const {
|
|||
|
||||
SaveStateList saveList;
|
||||
int slotNum = 0;
|
||||
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 2 digits of the filename, since they correspond to the save slot
|
||||
slotNum = atoi(file->c_str() + file->size() - 2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue