For backend authors only, the following pointers (= "slots") to various subsystem managers / factories / etc. can and should be set to a suitable instance of the respective type.
For some of the slots, a default instance is set if your backend does not do so. For details, refer to the documentation of each slot.
A backend may set up slot values in its initBackend() method, its constructor, or somewhere in between. But it must set a slot's value no later than in its initBackend() implementation, because OSystem::initBackend() will create any default instances if none have been set yet (and for other slots, will verify that one has been set; if not, an error may be generated).
◆ getSavefileManager()
Return the SaveFileManager, which is used to store and load savestates and other modifiable persistent game data.
For more information, see SaveFileManager.
Reimplemented in OSystem_SDL.
◆ getTextToSpeechManager()
Return the TextToSpeechManager, used to handle text-to-speech features.
- Returns
- The TextToSpeechManager for the current architecture.
◆ getDialogManager()
Return the DialogManager, which is used to handle system dialogs.
- Returns
- The DialogManager for the current architecture.
◆ getDLCStore()
Return the DLC Store, used to implement DLC manager functions.
- Returns
- The Store for the current architecture/distribution platform.
◆ getFilesystemFactory()
◆ _audiocdManager
No default value is provided for _audiocdManager by OSystem. However, BaseBackend::initBackend() does set a default value if none has been set before.
- Note
- _audiocdManager is deleted by the OSystem destructor.
◆ _eventManager
◆ _timerManager
No default value is provided for _timerManager by OSystem.
- Note
- _timerManager is deleted by the OSystem destructor.
◆ _savefileManager
No default value is provided for _savefileManager by OSystem.
- Note
- _savefileManager is deleted by the OSystem destructor.
◆ _textToSpeechManager
No default value is provided for _textToSpeechManager by OSystem.
- Note
- _textToSpeechManager is deleted by the OSystem destructor.
◆ _dialogManager
No default value is provided for _dialogManager by OSystem.
- Note
- _dialogManager is deleted by the OSystem destructor.
◆ _fsFactory
No default value is provided for _fsFactory by OSystem.
Note that _fsFactory is typically required very early on, so it usually should be set in the backends constructor or shortly thereafter, and before initBackend() is called.
- Note
- _fsFactory is deleted by the OSystem destructor.
◆ _dlcStore
Used by the DLC Manager implementation
◆ _clipboard
Used by the default clipboard implementation, for backends that don't implement clipboard support.
◆ _dummyUnused
bool OSystem::_dummyUnused |
|
protected |
Workaround for a bug in the osx_intel toolchain introduced by 014bef9eab9fb409cfb3ec66830e033e4aaa29a9. Adding this variable fixes it.