aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
authorThierry Crozat2016-03-09 00:37:39 +0000
committerThierry Crozat2016-03-09 00:38:08 +0000
commit2f1ae3fb4e31a5840334d3554becc156c075cb1d (patch)
treeba77383e86bc259224a262765301edcd0449b93e /engines/sword25
parent2ca642e3e27ceb698909100953dfdcbd3f2f969f (diff)
downloadscummvm-rg350-2f1ae3fb4e31a5840334d3554becc156c075cb1d.tar.gz
scummvm-rg350-2f1ae3fb4e31a5840334d3554becc156c075cb1d.tar.bz2
scummvm-rg350-2f1ae3fb4e31a5840334d3554becc156c075cb1d.zip
SWORD25: Fix error after changing language in-game with the data file distributed by ScummVM
Changing the language in-game causes the language to be set for the target in the scummvm.ini file. Then the next time we try to start the engine, if was causing an error (Sword25 failed to instantiate engine: Game data not found) because there was no match for the path and language in the detection table. Setting the language to Unknown in the detection table for this multilingual data file fixes the issue.
Diffstat (limited to 'engines/sword25')
-rw-r--r--engines/sword25/detection_tables.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sword25/detection_tables.h b/engines/sword25/detection_tables.h
index fa79bde4d5..927060bf18 100644
--- a/engines/sword25/detection_tables.h
+++ b/engines/sword25/detection_tables.h
@@ -132,11 +132,14 @@ static const ADGameDescription gameDescriptions[] = {
// Distributed by ScummVM
// Contains all language packs, English voice-overs and Hungarian version
+ // Mark it as Unknown Language since it contains multiple languages. If we
+ // mark it as English, then changing the language in-game causes the detection
+ // to fail the next time we try to start the engine.
{
"sword25",
"Latest version",
AD_ENTRY1s("data.b25c", "880a8a67faf4a4e7ab62cf114b771428", 827397764),
- Common::EN_ANY,
+ Common::UNK_LANG,
Common::kPlatformUnknown,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOASPECT)