diff options
author | Le Philousophe | 2019-10-12 11:51:34 +0200 |
---|---|---|
committer | Le Philousophe | 2019-10-13 09:22:04 +0200 |
commit | 578ad110112a20c7944ee6946f83719708a2f799 (patch) | |
tree | bf191b6809a76090beb68d384d014055bcc7ea2f /engines | |
parent | 52fb3ba4d65a338b2d2fb2e746106b8251a91e4b (diff) | |
download | scummvm-rg350-578ad110112a20c7944ee6946f83719708a2f799.tar.gz scummvm-rg350-578ad110112a20c7944ee6946f83719708a2f799.tar.bz2 scummvm-rg350-578ad110112a20c7944ee6946f83719708a2f799.zip |
CRYOMNI3D: Add Brazilian language support
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cryomni3d/datstream.cpp | 2 | ||||
-rw-r--r-- | engines/cryomni3d/detection_tables.h | 34 | ||||
-rw-r--r-- | engines/cryomni3d/versailles/menus.cpp | 6 |
3 files changed, 40 insertions, 2 deletions
diff --git a/engines/cryomni3d/datstream.cpp b/engines/cryomni3d/datstream.cpp index f1e10feb9f..e701d1d0d4 100644 --- a/engines/cryomni3d/datstream.cpp +++ b/engines/cryomni3d/datstream.cpp @@ -127,6 +127,8 @@ uint16 DATSeekableStream::translateLanguage(Common::Language lang) { return MKTAG16('f', 'r'); case Common::IT_ITA: return MKTAG16('i', 't'); + case Common::PT_BRA: + return MKTAG16('b', 'r'); default: // Invalid language return 0; diff --git a/engines/cryomni3d/detection_tables.h b/engines/cryomni3d/detection_tables.h index 7bb152d7b2..1435c25560 100644 --- a/engines/cryomni3d/detection_tables.h +++ b/engines/cryomni3d/detection_tables.h @@ -365,6 +365,40 @@ static const CryOmni3DGameDescription gameDescriptions[] = { GF_VERSAILLES_FONTS_NUMERIC | GF_VERSAILLES_AUDIOPADDING_YES, }, + // Versailles 1685 + // Brazilian Windows from DVD + // From Uka in forum + { + { + "versailles", + "", + AD_ENTRY1s("Versaill.exe", "49aa4581b8c652aa88c633b6c5fe84ea", 346112), + Common::PT_BRA, + Common::kPlatformWindows, + ADGF_NO_FLAGS, + GUI_OPTIONS_VERSAILLES + }, + GType_VERSAILLES, + GF_VERSAILLES_FONTS_NUMERIC | GF_VERSAILLES_AUDIOPADDING_YES, + }, + + // Versailles 1685 + // Brazilian Windows compressed from DVD + // From Uka in forum + { + { + "versailles", + "", + AD_ENTRY1s("PROGRAM.Z", "013eabf30fdec7bb7302a5312d094c64", 237952), + Common::PT_BRA, + Common::kPlatformWindows, + ADGF_NO_FLAGS, + GUI_OPTIONS_VERSAILLES + }, + GType_VERSAILLES, + GF_VERSAILLES_FONTS_NUMERIC | GF_VERSAILLES_AUDIOPADDING_YES, + }, + { AD_TABLE_END_MARKER, 0, 0 } }; diff --git a/engines/cryomni3d/versailles/menus.cpp b/engines/cryomni3d/versailles/menus.cpp index bec962e094..ea34b5d80d 100644 --- a/engines/cryomni3d/versailles/menus.cpp +++ b/engines/cryomni3d/versailles/menus.cpp @@ -48,7 +48,8 @@ void CryOmni3DEngine_Versailles::drawMenuTitle(Graphics::ManagedSurface *surface int titleX, titleY, subtitleX, subtitleY; if (getLanguage() == Common::FR_FRA || - getLanguage() == Common::ES_ESP) { + getLanguage() == Common::ES_ESP || + getLanguage() == Common::PT_BRA) { titleX = 144; titleY = 160; subtitleX = 305; @@ -75,7 +76,8 @@ void CryOmni3DEngine_Versailles::drawMenuTitle(Graphics::ManagedSurface *surface _fontManager.displayStr(subtitleX, subtitleY - offY, _messages[24]); if (getLanguage() == Common::FR_FRA || - getLanguage() == Common::ES_ESP) { + getLanguage() == Common::ES_ESP || + getLanguage() == Common::PT_BRA) { surface->vLine(100, 146, 172, color); surface->hLine(100, 172, 168, color); // minus 1 because hLine draws inclusive } |