mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 15:21:40 +00:00
Assign _lang to the appropriate enum values
svn-id: r34572
This commit is contained in:
parent
4fced32082
commit
2748701dbe
@ -65,7 +65,7 @@ DrasculaEngine::DrasculaEngine(OSystem *syst, const DrasculaGameDescription *gam
|
|||||||
if (cd_num >= 0)
|
if (cd_num >= 0)
|
||||||
_system->openCD(cd_num);
|
_system->openCD(cd_num);
|
||||||
|
|
||||||
_lang = 0;
|
_lang = kEnglish;
|
||||||
}
|
}
|
||||||
|
|
||||||
DrasculaEngine::~DrasculaEngine() {
|
DrasculaEngine::~DrasculaEngine() {
|
||||||
@ -113,23 +113,23 @@ int DrasculaEngine::init() {
|
|||||||
|
|
||||||
switch (getLanguage()) {
|
switch (getLanguage()) {
|
||||||
case Common::EN_ANY:
|
case Common::EN_ANY:
|
||||||
_lang = 0;
|
_lang = kEnglish;
|
||||||
break;
|
break;
|
||||||
case Common::ES_ESP:
|
case Common::ES_ESP:
|
||||||
_lang = 1;
|
_lang = kSpanish;
|
||||||
break;
|
break;
|
||||||
case Common::DE_DEU:
|
case Common::DE_DEU:
|
||||||
_lang = 2;
|
_lang = kGerman;
|
||||||
break;
|
break;
|
||||||
case Common::FR_FRA:
|
case Common::FR_FRA:
|
||||||
_lang = 3;
|
_lang = kFrench;
|
||||||
break;
|
break;
|
||||||
case Common::IT_ITA:
|
case Common::IT_ITA:
|
||||||
_lang = 4;
|
_lang = kItalian;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
warning("Unknown game language. Falling back to English");
|
warning("Unknown game language. Falling back to English");
|
||||||
_lang = 0;
|
_lang = kEnglish;
|
||||||
}
|
}
|
||||||
|
|
||||||
_charMap = 0;
|
_charMap = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user