aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-22 13:47:39 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit42a649fd808114a4d31099951457f2e4f4b593e6 (patch)
tree29ec4dd1aab619e71f604c34035ee30d9d71fbb9
parentdb5f5e7b0d6bafc54d1dd02edbbc7632bf37198c (diff)
downloadscummvm-rg350-42a649fd808114a4d31099951457f2e4f4b593e6.tar.gz
scummvm-rg350-42a649fd808114a4d31099951457f2e4f4b593e6.tar.bz2
scummvm-rg350-42a649fd808114a4d31099951457f2e4f4b593e6.zip
PINK: fix saving/loading
-rw-r--r--engines/pink/detection.cpp3
-rw-r--r--engines/pink/detection_tables.h34
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)
},