aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/detection.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-05-23 08:48:21 +1000
committerPaul Gilbert2011-05-23 18:41:17 +1000
commit27a6d9b910d5f434f1b75c2c42bbd1675fa10e37 (patch)
tree3967ddd940c880b13b3c99bc1cddb037690f1194 /engines/sword25/detection.cpp
parentb5609eb4a162264c7b3bc02ff31ca2f7dcbdecc8 (diff)
downloadscummvm-rg350-27a6d9b910d5f434f1b75c2c42bbd1675fa10e37.tar.gz
scummvm-rg350-27a6d9b910d5f434f1b75c2c42bbd1675fa10e37.tar.bz2
scummvm-rg350-27a6d9b910d5f434f1b75c2c42bbd1675fa10e37.zip
SWORD25: Added detection entries for other languages
This is needed now, since changing the language in-game updates the ScummVM language setting, and there must be a matching detection entry for each language.
Diffstat (limited to 'engines/sword25/detection.cpp')
-rw-r--r--engines/sword25/detection.cpp78
1 files changed, 75 insertions, 3 deletions
diff --git a/engines/sword25/detection.cpp b/engines/sword25/detection.cpp
index fd5820d508..62c7f81c00 100644
--- a/engines/sword25/detection.cpp
+++ b/engines/sword25/detection.cpp
@@ -37,10 +37,8 @@ static const PlainGameDescriptor Sword25Game[] = {
namespace Sword25 {
-// TODO: Need to decide whether we're going to implement code to detect all the various languages allowed,
-// both by the core data package, as well as the extra languages added by the patch file; also, I don't
-// think that all the languages supported by the game currently have constants in ScummVM
static const ADGameDescription gameDescriptions[] = {
+ // These two versions represent the default languages available in the data file
{
"sword25",
"",
@@ -52,6 +50,80 @@ static const ADGameDescription gameDescriptions[] = {
},
{
"sword25",
+ "",
+ AD_ENTRY1s("lang_fr.b25c", "690caf157387e06d2c3d1ca53c43f428", 1006043),
+ Common::FR_FRA,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+ {
+ "sword25",
+ "",
+ AD_ENTRY1s("data.b25c", "f8b6e03ada2d2f6cf27fbc11ad1572e9", 654310588),
+ Common::DE_DEU,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+ {
+ "sword25",
+ "",
+ AD_ENTRY1s("lang_hr.b25c", "e881054d1f8ec1e527422fc521c25405", 1273217),
+ Common::HU_HUN,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+ {
+ "sword25",
+ "",
+ AD_ENTRY1s("lang_it.b25c", "f3325666da0515cc2b42062e953c0889", 996197),
+ Common::IT_ITA,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+ {
+ "sword25",
+ "",
+ AD_ENTRY1s("lang_pl.b25c", "49dc1a20f95391a808e475c49be2bac0", 1281799),
+ Common::PL_POL,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+ {
+ "sword25",
+ "",
+ AD_ENTRY1s("lang_pt.b25c", "1df701432f9e13dcefe1adeb890b9c69", 993812),
+ Common::PT_BRA,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+ {
+ "sword25",
+ "",
+ AD_ENTRY1s("lang_ru.b25c", "deb33dd2f90a71ff60181918a8ce5063", 1235378),
+ Common::RU_RUS,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+ {
+ "sword25",
+ "",
+ AD_ENTRY1s("lang_es.b25c", "384c19072d83725f351bb9ecb4d3f02b", 987965),
+ Common::ES_ESP,
+ Common::kPlatformUnknown,
+ ADGF_NO_FLAGS,
+ Common::GUIO_NONE
+ },
+
+ // Extracted version
+ {
+ "sword25",
"Extracted",
{{"_includes.lua", 0, 0, -1},
{"boot.lua", 0, 0, -1},