diff options
author | Travis Howell | 2008-12-29 10:03:34 +0000 |
---|---|---|
committer | Travis Howell | 2008-12-29 10:03:34 +0000 |
commit | 4b4d752ba1aa590e4616e863f62e9113e2000fe5 (patch) | |
tree | 6f22f99c76fc9280a3badb6d9cc441159994a713 /engines/scumm/detection.cpp | |
parent | d8abe49a7822679f23980b51ab96c3186d5846b6 (diff) | |
download | scummvm-rg350-4b4d752ba1aa590e4616e863f62e9113e2000fe5.tar.gz scummvm-rg350-4b4d752ba1aa590e4616e863f62e9113e2000fe5.tar.bz2 scummvm-rg350-4b4d752ba1aa590e4616e863f62e9113e2000fe5.zip |
Add Blue's Treasure Hunt.
svn-id: r35599
Diffstat (limited to 'engines/scumm/detection.cpp')
-rw-r--r-- | engines/scumm/detection.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index 5a82373c0b..326ee6d4c2 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -99,7 +99,13 @@ Common::String ScummEngine::generateFilename(const int room) const { switch (disk) { case 2: id = 'b'; - snprintf(buf, sizeof(buf), "%s.(b)", _filenamePattern.pattern); + // Special cases for Blue's games, which share common (b) files + if (_game.id == GID_BIRTHDAY) + strcpy(buf, "Blue'sBirthday.(b)"); + else if (_game.id == GID_TREASUREHUNT) + strcpy(buf, "Blue'sTreasureHunt.(b)"); + else + snprintf(buf, sizeof(buf), "%s.(b)", _filenamePattern.pattern); break; case 1: id = 'a'; |