mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
removed 'subtitle' option, added missing finalize
svn-id: r48316
This commit is contained in:
parent
76c9e2a4f2
commit
34811eb8dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user