aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorMax Horn2010-03-18 15:54:40 +0000
committerMax Horn2010-03-18 15:54:40 +0000
commitcac0ac66e22d18a57958ef342e6b115e35197e90 (patch)
tree1fef12f458e84cdba353bd9b3ef45e3d00a63a16 /engines/sword1
parent81a698d0a0a52115088825523950047d135b0ca0 (diff)
downloadscummvm-rg350-cac0ac66e22d18a57958ef342e6b115e35197e90.tar.gz
scummvm-rg350-cac0ac66e22d18a57958ef342e6b115e35197e90.tar.bz2
scummvm-rg350-cac0ac66e22d18a57958ef342e6b115e35197e90.zip
COMMON: Get rid of Common::StringList
svn-id: r48287
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/control.cpp6
-rw-r--r--engines/sword1/detection.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index dd57d8f98e..d6a04513a8 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -791,14 +791,14 @@ bool Control::restoreFromFile() {
void Control::readSavegameDescriptions() {
char saveName[40];
Common::String pattern = "sword1.???";
- Common::StringList filenames = _saveFileMan->listSavefiles(pattern);
+ Common::StringArray filenames = _saveFileMan->listSavefiles(pattern);
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
_saveNames.clear();
int num = 0;
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 3 digits of the filename, since they correspond to the save slot
slotNum = atoi(file->c_str() + file->size() - 3);
@@ -847,7 +847,7 @@ int Control::displayMessage(const char *altButton, const char *message, ...) {
bool Control::savegamesExist() {
Common::String pattern = "sword1.???";
- Common::StringList saveNames = _saveFileMan->listSavefiles(pattern);
+ Common::StringArray saveNames = _saveFileMan->listSavefiles(pattern);
return saveNames.size() > 0;
}
diff --git a/engines/sword1/detection.cpp b/engines/sword1/detection.cpp
index e6cc5e09fa..e51a3d6a8d 100644
--- a/engines/sword1/detection.cpp
+++ b/engines/sword1/detection.cpp
@@ -228,11 +228,11 @@ SaveStateList SwordMetaEngine::listSaves(const char *target) const {
SaveStateList saveList;
char saveName[40];
- Common::StringList filenames = saveFileMan->listSavefiles("sword1.???");
+ Common::StringArray filenames = saveFileMan->listSavefiles("sword1.???");
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
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 3 digits of the filename, since they correspond to the save slot
slotNum = atoi(file->c_str() + file->size() - 3);