COMMON: removed USE_TTS check from engines #2987
This removed the need for the engine authors to add scummvm compile time options checks into their engine code.
OSystem now just returns a
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
Very nice. All the relevant code segments have null checks for textToSpeechManager, which is set in the different platforms (macosx.cpp, posix.cpp and win32.cpp).
I've gone through all the changes, and this certainly clears these checks and makes the TTS code much simpler and easier to use. The USE_TTS checks are indeed not needed for the engine code, and should only be left in the backend code that actually initializes the TTS manager.
Many thanks for your work! A straightforward change, which makes things easier for everyone.