Formatting.

svn-id: r34830
This commit is contained in:
Johannes Schickel 2008-10-20 21:55:20 +00:00
parent 07220529dc
commit a5a73ff9d6

View File

@ -222,24 +222,23 @@ SaveStateList SwordMetaEngine::listSaves(const char *target) const {
uint pos = 0;
do {
stop = in->readByte();
if (pos < (sizeof(saveDesc) - 1)) {
if ((stop == 10) || (stop == 255) || (in->eos())) {
if (pos < (sizeof(saveDesc) - 1)) {
if ((stop == 10) || (stop == 255) || (in->eos()))
saveDesc[pos++] = '\0';
}
else if (stop >= 32) {
else if (stop >= 32)
saveDesc[pos++] = stop;
}
}
} while ((stop != 10) && (stop != 255) && (!in->eos()));
if (saveDesc[0] != 0) {
saveList.push_back(SaveStateDescriptor(slotNum, saveDesc, *file));
file++;
}
} while ((stop != 255) && (!in->eos()));
}
delete in;
return saveList;
}