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
|
@ -1048,7 +1048,7 @@ bool AgiMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameD
|
|||
SaveStateList AgiMetaEngine::listSaves(const char *target) const {
|
||||
const uint32 AGIflag = MKID_BE('AGI:');
|
||||
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
|
||||
Common::StringList filenames;
|
||||
Common::StringArray filenames;
|
||||
char saveDesc[31];
|
||||
Common::String pattern = target;
|
||||
pattern += ".???";
|
||||
|
@ -1057,7 +1057,7 @@ SaveStateList AgiMetaEngine::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