Skip to content

Commit

Permalink
SWORD25: Fix error after changing language in-game with the data file…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
criezy authored and sev- committed Mar 9, 2016
1 parent 7d1d1da commit 9474459
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engines/sword25/detection_tables.h
Expand Up @@ -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)
Expand Down

0 comments on commit 9474459

Please sign in to comment.