diff options
author | Gregory Montoir | 2008-11-30 11:30:29 +0000 |
---|---|---|
committer | Gregory Montoir | 2008-11-30 11:30:29 +0000 |
commit | d93413b99bc0fff3524c3fbca032ca45b1a98b8e (patch) | |
tree | 6a1732d20c5717e1307afaf9cfa76fcd900e2172 | |
parent | 2811ebf905be48d9007d5265e022da6a1f705693 (diff) | |
download | scummvm-rg350-d93413b99bc0fff3524c3fbca032ca45b1a98b8e.tar.gz scummvm-rg350-d93413b99bc0fff3524c3fbca032ca45b1a98b8e.tar.bz2 scummvm-rg350-d93413b99bc0fff3524c3fbca032ca45b1a98b8e.zip |
added detection entries and charset selection for german version
svn-id: r35188
-rw-r--r-- | engines/tucker/detection.cpp | 8 | ||||
-rw-r--r-- | engines/tucker/graphics.cpp | 4 | ||||
-rw-r--r-- | engines/tucker/graphics.h | 4 | ||||
-rw-r--r-- | engines/tucker/resource.cpp | 10 | ||||
-rw-r--r-- | engines/tucker/tucker.cpp | 9 |
5 files changed, 29 insertions, 6 deletions
diff --git a/engines/tucker/detection.cpp b/engines/tucker/detection.cpp index d6742bb342..8263b6eb91 100644 --- a/engines/tucker/detection.cpp +++ b/engines/tucker/detection.cpp @@ -64,6 +64,14 @@ static const Common::ADGameDescription tuckerGameDescriptions[] = { }, { "tucker", + "", + AD_ENTRY1s("infobrgr.txt", "4df9eb65722418d1a1723508115b146c", 552), + Common::GR_GRE, + Common::kPlatformPC, + Common::ADGF_NO_FLAGS + }, + { + "tucker", "Demo", AD_ENTRY1s("sample.bnk", "0c58636237f90238cbfd49d76b3e5c1a", 10780), Common::EN_ANY, diff --git a/engines/tucker/graphics.cpp b/engines/tucker/graphics.cpp index a2ac399e63..2b77d03ccc 100644 --- a/engines/tucker/graphics.cpp +++ b/engines/tucker/graphics.cpp @@ -244,13 +244,13 @@ void Graphics::drawStringChar(uint8 *dst, uint8 chr, int pitch, uint8 chrColor, void Graphics::setCharset(CharsetType type) { switch (type) { - case kCharsetTypeEnglish: + case kCharsetTypeEn: _charset.charW = 10; _charset.charH = 8; _charset.xCount = 32; _charset.yCount = 3; break; - case kCharsetTypeFrench: + case kCharsetTypeFrGr: _charset.charW = 10; _charset.charH = 10; _charset.xCount = 32; diff --git a/engines/tucker/graphics.h b/engines/tucker/graphics.h index b2d14e221e..7dfee58b48 100644 --- a/engines/tucker/graphics.h +++ b/engines/tucker/graphics.h @@ -31,8 +31,8 @@ namespace Tucker { enum CharsetType { - kCharsetTypeEnglish, - kCharsetTypeFrench, + kCharsetTypeEn, + kCharsetTypeFrGr, kCharsetTypeCredits }; diff --git a/engines/tucker/resource.cpp b/engines/tucker/resource.cpp index 9cc17982ef..74e5f6d286 100644 --- a/engines/tucker/resource.cpp +++ b/engines/tucker/resource.cpp @@ -268,7 +268,15 @@ void TuckerEngine::loadCursor() { void TuckerEngine::loadCharset() { strcpy(_fileToLoad, "charset.pcx"); loadImage(_loadTempBuf, 0); - Graphics::setCharset((_gameVer.lang == Common::FR_FRA) ? kCharsetTypeFrench : kCharsetTypeEnglish); + switch (_gameVer.lang) { + case Common::FR_FRA: + case Common::GR_GRE: + Graphics::setCharset(kCharsetTypeFrGr); + break; + default: + Graphics::setCharset(kCharsetTypeEn); + break; + } loadCharsetHelper(); } diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index 55d2e0d089..097ffdf158 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -333,7 +333,14 @@ void TuckerEngine::mainLoop() { loadCharSizeDta(); loadCharset(); loadPanel(); - strcpy(_fileToLoad, "infobar.txt"); + switch (_gameVer.lang) { + case Common::GR_GRE: + strcpy(_fileToLoad, "infobrgr.txt"); + break; + default: + strcpy(_fileToLoad, "infobar.txt"); + break; + } loadFile(_infoBarBuf); strcpy(_fileToLoad, "data5.c"); _data5Buf = loadFile(); |