mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
BBVS: Fix compilation without translation enabled
A regression from 2a6cbd0
This commit is contained in:
parent
d0d1d6e921
commit
bb12f77cbf
@ -118,15 +118,19 @@ BbvsEngine::BbvsEngine(OSystem *syst, const ADGameDescription *gd) :
|
||||
|
||||
Engine::syncSoundSettings();
|
||||
|
||||
#ifdef USE_TRANSLATION
|
||||
_oldGUILanguage = TransMan.getCurrentLanguage();
|
||||
|
||||
if (gd->flags & GF_GUILANGSWITCH)
|
||||
TransMan.setLanguage(getLanguageLocale(gd->language));
|
||||
#endif
|
||||
}
|
||||
|
||||
BbvsEngine::~BbvsEngine() {
|
||||
#ifdef USE_TRANSLATION
|
||||
if (TransMan.getCurrentLanguage() != _oldGUILanguage)
|
||||
TransMan.setLanguage(_oldGUILanguage);
|
||||
#endif
|
||||
|
||||
delete _random;
|
||||
|
||||
|
@ -234,7 +234,10 @@ public:
|
||||
|
||||
private:
|
||||
Graphics::PixelFormat _pixelFormat;
|
||||
|
||||
#ifdef USE_TRANSLATION
|
||||
Common::String _oldGUILanguage;
|
||||
#endif
|
||||
|
||||
public:
|
||||
Common::RandomSource *_random;
|
||||
|
Loading…
x
Reference in New Issue
Block a user