added detection entries and charset selection for german version
svn-id: r35188
This commit is contained in:
parent
2811ebf905
commit
d93413b99b
5 changed files with 29 additions and 6 deletions
|
@ -62,6 +62,14 @@ static const Common::ADGameDescription tuckerGameDescriptions[] = {
|
|||
Common::kPlatformPC,
|
||||
Common::ADGF_NO_FLAGS
|
||||
},
|
||||
{
|
||||
"tucker",
|
||||
"",
|
||||
AD_ENTRY1s("infobrgr.txt", "4df9eb65722418d1a1723508115b146c", 552),
|
||||
Common::GR_GRE,
|
||||
Common::kPlatformPC,
|
||||
Common::ADGF_NO_FLAGS
|
||||
},
|
||||
{
|
||||
"tucker",
|
||||
"Demo",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
namespace Tucker {
|
||||
|
||||
enum CharsetType {
|
||||
kCharsetTypeEnglish,
|
||||
kCharsetTypeFrench,
|
||||
kCharsetTypeEn,
|
||||
kCharsetTypeFrGr,
|
||||
kCharsetTypeCredits
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue