COMMON: removed USE_TTS check from engines
OSystem now just returns a nullptr if there is no text to speech manager instance (because none is compiled into the binary, or the system doesn't provide support for it). This removed the need for the engine authors to add scummvm osystem compile time options checks into their engine code
This commit is contained in:
parent
e0c1ea0584
commit
9d82fa51df
24 changed files with 10 additions and 122 deletions
|
@ -50,9 +50,7 @@ OSystem::OSystem() {
|
|||
#if defined(USE_UPDATES)
|
||||
_updateManager = nullptr;
|
||||
#endif
|
||||
#if defined(USE_TTS)
|
||||
_textToSpeechManager = nullptr;
|
||||
#endif
|
||||
#if defined(USE_SYSDIALOGS)
|
||||
_dialogManager = nullptr;
|
||||
#endif
|
||||
|
@ -80,10 +78,8 @@ OSystem::~OSystem() {
|
|||
_updateManager = nullptr;
|
||||
#endif
|
||||
|
||||
#if defined(USE_TTS)
|
||||
delete _textToSpeechManager;
|
||||
_textToSpeechManager = 0;
|
||||
#endif
|
||||
_textToSpeechManager = nullptr;
|
||||
|
||||
#if defined(USE_SYSDIALOGS)
|
||||
delete _dialogManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue