aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/detection.h
diff options
context:
space:
mode:
authorlukaslw2014-10-28 19:20:56 +0100
committerlukaslw2014-10-28 20:59:11 +0100
commit9ad2135ff960da2bbc1882ac50f2188b5a9e228e (patch)
treecdb7ec4d95eed38d733900dce6e232c07b1ba03d /engines/prince/detection.h
parent7126374b428ebb2feb7b431bdf5c906482d248dd (diff)
downloadscummvm-rg350-9ad2135ff960da2bbc1882ac50f2188b5a9e228e.tar.gz
scummvm-rg350-9ad2135ff960da2bbc1882ac50f2188b5a9e228e.tar.bz2
scummvm-rg350-9ad2135ff960da2bbc1882ac50f2188b5a9e228e.zip
PRINCE: Allow to load translation file - prince_translation.dat
Update detection file to allow English language with both PL and DE data files. Add setMobTranslationTexts() to update mob names to translated ones in each location
Diffstat (limited to 'engines/prince/detection.h')
-rw-r--r--engines/prince/detection.h38
1 files changed, 34 insertions, 4 deletions
diff --git a/engines/prince/detection.h b/engines/prince/detection.h
index 5cc0d32be4..6720e5e0b7 100644
--- a/engines/prince/detection.h
+++ b/engines/prince/detection.h
@@ -28,9 +28,15 @@
namespace Prince {
+enum PrinceGameType {
+ UNK_DATA,
+ DE_DATA,
+ PL_DATA
+};
+
struct PrinceGameDescription {
ADGameDescription desc;
- int gameType;
+ PrinceGameType gameType;
};
static const PlainGameDescriptor princeGames[] = {
@@ -49,7 +55,7 @@ static const PrinceGameDescription gameDescriptions[] = {
ADGF_TESTING,
GUIO1(GUIO_NONE)
},
- 0
+ DE_DATA
},
{
{
@@ -61,9 +67,33 @@ static const PrinceGameDescription gameDescriptions[] = {
ADGF_TESTING,
GUIO1(GUIO_NONE)
},
- 1
+ PL_DATA
+ },
+ {
+ {
+ "prince",
+ "The Prince and the Coward",
+ AD_ENTRY1s("databank.ptc", "5fa03833177331214ec1354761b1d2ee", 3565031),
+ Common::EN_ANY,
+ Common::kPlatformWindows,
+ ADGF_TESTING,
+ GUIO1(GUIO_NONE)
+ },
+ DE_DATA
+ },
+ {
+ {
+ "prince",
+ "The Prince and the Coward",
+ AD_ENTRY1s("databank.ptc", "48ec9806bda9d152acbea8ce31c93c49", 3435298),
+ Common::EN_ANY,
+ Common::kPlatformWindows,
+ ADGF_TESTING,
+ GUIO1(GUIO_NONE)
+ },
+ PL_DATA
},
- { AD_TABLE_END_MARKER, 0 }
+ { AD_TABLE_END_MARKER, UNK_DATA }
};
const static char *directoryGlobs[] = {