aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJonathan Gray2003-01-29 08:07:10 +0000
committerJonathan Gray2003-01-29 08:07:10 +0000
commit80bd1491563bcf974dd87506e43e225f0b3adf61 (patch)
tree9bcc9c6cef21e5eaa11b36979145db17f9e9806a /scumm
parent988db178e65bef7cf6d4fe9bda28d5eb16ea1e29 (diff)
downloadscummvm-rg350-80bd1491563bcf974dd87506e43e225f0b3adf61.tar.gz
scummvm-rg350-80bd1491563bcf974dd87506e43e225f0b3adf61.tar.bz2
scummvm-rg350-80bd1491563bcf974dd87506e43e225f0b3adf61.zip
add ability to specify language for comi see scummvm -h for possible values
svn-id: r6567
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scumm.h14
-rw-r--r--scumm/scummvm.cpp2
2 files changed, 3 insertions, 13 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h
index d1bbfe6408..9c943e5b74 100644
--- a/scumm/scumm.h
+++ b/scumm/scumm.h
@@ -160,19 +160,6 @@ enum {
MBS_MAX_KEY = 0x0200
};
-// possible languages for comi
-enum Languages {
- EN_USA = 0,
- DE_DEU = 1,
- FR_FRA = 2,
- IT_ITA = 3,
- PT_BRA = 4,
- ES_ESP = 5,
- JA_JPN = 6,
- ZH_TWN = 7,
- KO_KOR = 8
-};
-
#define _maxRooms res.num[rtRoom]
#define _maxScripts res.num[rtScript]
#define _maxCostumes res.num[rtCostume]
@@ -393,6 +380,7 @@ public:
uint16 _debugMode, _soundCardType;
/* Not sure where this stuff goes */
+ uint16 _language;
byte isMaskActiveAt(int l, int t, int r, int b, byte *mem);
void startScene(int room, Actor *a, int b);
virtual void setupScummVars();
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index eb15759aec..fbdb7b0e3e 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -94,6 +94,7 @@ Scumm::Scumm (GameDetector *detector, OSystem *syst)
_noSubtitles = detector->_noSubtitles;
_defaultTalkDelay = detector->_talkSpeed;
_use_adlib = detector->_use_adlib;
+ _language = detector->_language;
memset(&res, 0, sizeof(res));
_allocatedSize = 0;
_roomResource = 0;
@@ -367,6 +368,7 @@ void Scumm::initScummVars()
if (_features & GF_AFTER_V8) { // Fixme: How do we deal with non-cd installs?
_vars[VAR_CURRENTDISK] = 1;
+ _vars[VAR_LANGUAGE] = _language;
}
}