From 42a649fd808114a4d31099951457f2e4f4b593e6 Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Fri, 22 Jun 2018 13:47:39 +0300 Subject: PINK: fix saving/loading --- engines/pink/detection.cpp | 3 ++- engines/pink/detection_tables.h | 34 +++++++++++++++++----------------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/engines/pink/detection.cpp b/engines/pink/detection.cpp index d64354885c..28af99798a 100644 --- a/engines/pink/detection.cpp +++ b/engines/pink/detection.cpp @@ -88,7 +88,8 @@ SaveStateList PinkMetaEngine::listSaves(const char *target) const { if (in) { SaveStateDescriptor desc; desc.setSaveSlot(slotNum); - saveList.push_back(desc); + if (Pink::readSaveHeader(*in.get(), desc)) + saveList.push_back(desc); } } } diff --git a/engines/pink/detection_tables.h b/engines/pink/detection_tables.h index 81c5800575..e4de5637ed 100644 --- a/engines/pink/detection_tables.h +++ b/engines/pink/detection_tables.h @@ -40,7 +40,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::EN_ANY, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -56,7 +56,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::FI_FIN, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -72,7 +72,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::FR_FRA, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -88,7 +88,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::HE_ISR, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -104,7 +104,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::PL_POL, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -120,7 +120,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::PT_BRA, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -136,7 +136,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::RU_RUS, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -152,7 +152,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::ES_ESP, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -168,7 +168,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::SE_SWE, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -183,7 +183,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::EN_ANY, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -198,7 +198,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::FR_FRA, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -213,7 +213,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::HE_ISR, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -228,7 +228,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::PL_POL, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -243,7 +243,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::PT_BRA, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -258,7 +258,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::RU_RUS, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -273,7 +273,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::ES_ESP, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, @@ -288,7 +288,7 @@ static const ADGameDescription gameDescriptions[] = { }, Common::SE_SWE, Common::kPlatformWindows, - ADGF_UNSTABLE | ADGF_DROPPLATFORM, + ADGF_UNSTABLE | ADGF_DROPPLATFORM | ADGF_DROPLANGUAGE, GUIO1(GUIO_NONE) }, -- cgit v1.2.3