From 74d0ad83711ae515befa1ed8dcff9dc6f59c5275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Boutonn=C3=A9?= Date: Sun, 7 Nov 2010 22:10:29 +0000 Subject: [PATCH] HUGO: Use DOS names for and exact names in endGame() svn-id: r54131 --- engines/hugo/detection.cpp | 4 ++-- engines/hugo/hugo.cpp | 22 +++++++++++++++++----- engines/hugo/hugo.h | 3 +++ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/engines/hugo/detection.cpp b/engines/hugo/detection.cpp index 0064a39434c..d10b50d0b71 100644 --- a/engines/hugo/detection.cpp +++ b/engines/hugo/detection.cpp @@ -41,8 +41,8 @@ uint32 HugoEngine::getFeatures() const { static const PlainGameDescriptor hugoGames[] = { // Games {"hugo1", "Hugo 1: Hugo's House of Horrors"}, - {"hugo2", "Hugo 2: Hugo's Mystery Adventure"}, - {"hugo3", "Hugo 3: Hugo's Amazon Adventure"}, + {"hugo2", "Hugo 2: Whodunit?"}, + {"hugo3", "Hugo 3: Jungle of Doom"}, {0, 0} }; diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index fab2e2d17d3..ef3352829d4 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -985,16 +985,28 @@ void HugoEngine::initialize() { _rnd->setSeed(42); // Kick random number generator - switch (getGameType()) { - case kGameTypeHugo1: - _episode = "\"HUGO'S HOUSE OF HORRORS\""; + switch (_gameVariant) { + case kGameVariantH1Dos: + _episode = "\"Hugo's House of Horrors\""; _picDir = ""; break; - case kGameTypeHugo2: + case kGameVariantH2Dos: + _episode = "\"Hugo 2: Whodunit?\""; + _picDir = "hugo2/"; + break; + case kGameVariantH3Dos: + _episode = "\"Hugo III: Jungle of Doom\""; + _picDir = "hugo3/"; + break; + case kGameVariantH1Win: + _episode = "\"Hugo's Horrific Adventure\""; + _picDir = ""; + break; + case kGameVariantH2Win: _episode = "\"Hugo's Mystery Adventure\""; _picDir = "hugo2/"; break; - case kGameTypeHugo3: + case kGameVariantH3Win: _episode = "\"Hugo's Amazon Adventure\""; _picDir = "hugo3/"; break; diff --git a/engines/hugo/hugo.h b/engines/hugo/hugo.h index c8298246385..4cfd9b04851 100644 --- a/engines/hugo/hugo.h +++ b/engines/hugo/hugo.h @@ -53,6 +53,9 @@ class RandomSource; * - Hugo's House of Horror * - Whodunit? * - Jungle of Doom + * - Hugo's Horrific Adventure + * - Hugo's Mystery Adventure + * - Hugo's Amazon Adventure */ namespace Hugo {