aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorVladimir Menshakov2010-03-20 13:55:07 +0000
committerVladimir Menshakov2010-03-20 13:55:07 +0000
commit34811eb8dd689eaf402ac2e3e7df37c8ba8ce94e (patch)
tree48700278c2decbf13c5c7ce386288445593b004e /engines/teenagent
parent76c9e2a4f29f8c0f9e956d86fb747f9a5898e7ee (diff)
downloadscummvm-rg350-34811eb8dd689eaf402ac2e3e7df37c8ba8ce94e.tar.gz
scummvm-rg350-34811eb8dd689eaf402ac2e3e7df37c8ba8ce94e.tar.bz2
scummvm-rg350-34811eb8dd689eaf402ac2e3e7df37c8ba8ce94e.zip
removed 'subtitle' option, added missing finalize
svn-id: r48316
Diffstat (limited to 'engines/teenagent')
-rw-r--r--engines/teenagent/teenagent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp
index d59c533890..97d53aecc2 100644
--- a/engines/teenagent/teenagent.cpp
+++ b/engines/teenagent/teenagent.cpp
@@ -229,7 +229,7 @@ Common::Error TeenAgentEngine::saveGameState(int slot, const char *desc) {
debug(0, "saving to slot %d", slot);
Common::OutSaveFile *out = _saveFileMan->openForSaving(Common::String::printf("teenagent.%02d", slot));
if (out == NULL)
- return Common::kWritePermissionDenied;
+ return Common::kWritingFailed;
Resources *res = Resources::instance();
res->dseg.set_byte(0xB4F3, scene->getId());
@@ -242,6 +242,7 @@ Common::Error TeenAgentEngine::saveGameState(int slot, const char *desc) {
out->write(res->dseg.ptr(0x6478), 0x777a);
if (!Graphics::saveThumbnail(*out))
warning("saveThumbnail failed");
+ out->finalize();
delete out;
return Common::kNoError;
@@ -935,7 +936,6 @@ bool TeenAgentEngine::hasFeature(EngineFeature f) const {
case kSupportsRTL:
case kSupportsLoadingDuringRuntime:
case kSupportsSavingDuringRuntime:
- case kSupportsSubtitleOptions:
return true;
default:
return false;