diff options
author | Johannes Schickel | 2012-09-26 04:17:31 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-09-26 04:17:55 +0200 |
commit | 89abab97e3124fa25eb4c7d3e8b38501747a8d17 (patch) | |
tree | d60a833c9ed352fbe44c0b9a6b8ff43fcbc29419 /engines/drascula/detection.cpp | |
parent | a6c6c74350bb673c178d9756a1625ca128d24f21 (diff) | |
download | scummvm-rg350-89abab97e3124fa25eb4c7d3e8b38501747a8d17.tar.gz scummvm-rg350-89abab97e3124fa25eb4c7d3e8b38501747a8d17.tar.bz2 scummvm-rg350-89abab97e3124fa25eb4c7d3e8b38501747a8d17.zip |
JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
Diffstat (limited to 'engines/drascula/detection.cpp')
-rw-r--r-- | engines/drascula/detection.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp index 6e38d49b94..760d8b7d98 100644 --- a/engines/drascula/detection.cpp +++ b/engines/drascula/detection.cpp @@ -284,7 +284,7 @@ public: Common::StringArray filenames = saveFileMan->listSavefiles(pattern); Common::Array<int> slots; 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 int slotNum = atoi(file->c_str() + file->size() - 2); @@ -299,7 +299,7 @@ public: // Load save index Common::String fileEpa = Common::String::format("%s.epa", target); - Common::InSaveFile *epa = saveFileMan->openForLoading(fileEpa); + Common::InSaveFile *epa = saveFileMan->openForLoading(fileEpa); // Get savegame names from index Common::String saveDesc; @@ -307,19 +307,19 @@ public: int line = 1; for (size_t i = 0; i < slots.size(); i++) { // ignore lines corresponding to unused saveslots - for (; line < slots[i]; line++) - epa->readLine(); + for (; line < slots[i]; line++) + epa->readLine(); // copy the name in the line corresponding to the save slot and truncate to 22 characters saveDesc = Common::String(epa->readLine().c_str(), 22); // handle cases where the save directory and save index are detectably out of sync - if (saveDesc == "*") + if (saveDesc == "*") saveDesc = "No name specified."; // increment line number to keep it in sync with slot number - line++; - + line++; + // Insert savegame name into list saveList.push_back(SaveStateDescriptor(slots[i], saveDesc)); } |