aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/detection.cpp')
-rw-r--r--engines/saga/detection.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/saga/detection.cpp b/engines/saga/detection.cpp
index 2d42ba336f..53540186d6 100644
--- a/engines/saga/detection.cpp
+++ b/engines/saga/detection.cpp
@@ -198,7 +198,7 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const {
for (Common::StringList::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);
-
+
if (slotNum >= 0 && slotNum <= 99) {
Common::InSaveFile *in = saveFileMan->openForLoading(file->c_str());
if (in) {
@@ -285,7 +285,7 @@ SaveStateDescriptor SagaMetaEngine::querySaveMetaInfos(const char *target, int s
int year = saveDate & 0xFFFF;
desc.setSaveDate(year, month, day);
-
+
int hour = (saveTime >> 8) & 0xFF;
int minutes = saveTime & 0xFF;
@@ -298,7 +298,7 @@ SaveStateDescriptor SagaMetaEngine::querySaveMetaInfos(const char *target, int s
return desc;
}
-
+
return SaveStateDescriptor();
}
@@ -358,12 +358,12 @@ Common::Error SagaEngine::saveGameState(int slot, const char *desc) {
return Common::kNoError; // TODO: return success/failure
}
-bool SagaEngine::canLoadGameStateCurrently() {
+bool SagaEngine::canLoadGameStateCurrently() {
return !_scene->isInIntro();
}
-bool SagaEngine::canSaveGameStateCurrently() {
- return !_scene->isInIntro() &&
+bool SagaEngine::canSaveGameStateCurrently() {
+ return !_scene->isInIntro() &&
(_interface->getMode() == kPanelMain || _interface->getMode() == kPanelChapterSelection);
}