From 22cf61ba644d3c0c983d3453e32d769da701f7d5 Mon Sep 17 00:00:00 2001 From: Pawel Kolodziejski Date: Sun, 18 Jan 2015 14:41:21 +0100 Subject: [PATCH] GRIM: added detection for German demo version of Grim Fandango --- engines/grim/detection.cpp | 13 +++++++++++++ engines/grim/md5check.cpp | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/engines/grim/detection.cpp b/engines/grim/detection.cpp index 6db4f933510..fe4b932216f 100644 --- a/engines/grim/detection.cpp +++ b/engines/grim/detection.cpp @@ -242,6 +242,19 @@ static const GrimGameDescription gameDescriptions[] = { }, GType_GRIM }, + { + // Grim Fandango German demo version + { + "grim", + "Demo", + AD_ENTRY1s("gfdemo01.lab", "7df813f3809f2c0234213cfa4f6da062", 29533695), + Common::DE_DEU, + Common::kPlatformWindows, + ADGF_DEMO, + GUIO1(GAMEOPTION_LOAD_DATAUSR) + }, + GType_GRIM + }, #ifdef ENABLE_MONKEY4 { // Escape from Monkey Island English diff --git a/engines/grim/md5check.cpp b/engines/grim/md5check.cpp index b57f06cd32c..49bbd6f875b 100644 --- a/engines/grim/md5check.cpp +++ b/engines/grim/md5check.cpp @@ -155,6 +155,9 @@ const char *local[] = { const char *gfdemo01[] = { "25d831d57a93eb3ab8edbb07b7b63943" }; +const char *gfdemo01ger[] = { + "fd728f040557118b7ca436f8205029e5" +}; const char *grimdemo[] = { "3ba28e7e36a49b5fd01ba98e3c772fe8" }; @@ -164,7 +167,9 @@ const char *sound001[] = { const char *voice001[] = { "f24a45079394fee296a0f7fad07c7fad" }; - +const char *voice001ger[] = { + "d1d68735ae10148ecccb6b5000a4db96" +}; // EMI retail PC version @@ -356,10 +361,15 @@ void MD5Check::init() { if (g_grim->getGameType() == GType_GRIM) { if (g_grim->getGameFlags() & ADGF_DEMO) { - MD5SUM("gfdemo01.lab", gfdemo01) + if (g_grim->getGameLanguage() == Common::DE_DEU) { + MD5SUM("gfdemo01.lab", gfdemo01ger) + MD5SUM("voice001.lab", voice001ger) + } else { + MD5SUM("gfdemo01.lab", gfdemo01) + MD5SUM("voice001.lab", voice001) + } MD5SUM("grimdemo.mus", grimdemo) MD5SUM("sound001.lab", sound001) - MD5SUM("voice001.lab", voice001) } else { MD5SUM("gfupd101.exe", gfupd101) MD5SUM("year4mus.lab", year4mus)