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()
virtual Common::SaveFileManager* OSystem::getSavefileManager |
( |
| ) |
|
|
virtual |
Return the SaveFileManager, which is used to store and load savestates and other modifiable persistent game data.
For more information, see SaveFileManager.
◆ getTaskbarManager()
virtual Common::TaskbarManager* OSystem::getTaskbarManager |
( |
| ) |
|
|
inlinevirtual |
Return the TaskbarManager, which is used to handle progress bars, icon overlay, tasks, and recent items list on the taskbar.
- Returns
- The TaskbarManager for the current architecture.
◆ getUpdateManager()
virtual Common::UpdateManager* OSystem::getUpdateManager |
( |
| ) |
|
|
inlinevirtual |
Return the UpdateManager, which is used to handle auto-updating and updating of ScummVM in general.
- Returns
- The UpdateManager for the current architecture.
◆ getTextToSpeechManager()
virtual Common::TextToSpeechManager* OSystem::getTextToSpeechManager |
( |
| ) |
|
|
inlinevirtual |
Return the TextToSpeechManager, used to handle text-to-speech features.
- Returns
- The TextToSpeechManager for the current architecture.
◆ getDialogManager()
virtual Common::DialogManager* OSystem::getDialogManager |
( |
| ) |
|
|
inlinevirtual |
Return the DialogManager, which is used to handle system dialogs.
- Returns
- The DialogManager for the current architecture.
◆ getFilesystemFactory()
virtual FilesystemFactory* OSystem::getFilesystemFactory |
( |
| ) |
|
|
virtual |
Return the FilesystemFactory object, depending on the current architecture.
- Returns
- The FSNode factory for the current architecture.
◆ _audiocdManager
AudioCDManager* OSystem::_audiocdManager |
|
protected |
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
Common::EventManager* OSystem::_eventManager |
|
protected |
No default value is provided for _eventManager by OSystem. However, EventsBaseBackend::initBackend() does set a default value if none has been set before.
- Note
- _eventManager is deleted by the OSystem destructor.
◆ _timerManager
Common::TimerManager* OSystem::_timerManager |
|
protected |
No default value is provided for _timerManager by OSystem.
- Note
- _timerManager is deleted by the OSystem destructor.
◆ _savefileManager
Common::SaveFileManager* OSystem::_savefileManager |
|
protected |
No default value is provided for _savefileManager by OSystem.
- Note
- _savefileManager is deleted by the OSystem destructor.
◆ _taskbarManager
Common::TaskbarManager* OSystem::_taskbarManager |
|
protected |
No default value is provided for _taskbarManager by OSystem.
- Note
- _taskbarManager is deleted by the OSystem destructor.
◆ _updateManager
Common::UpdateManager* OSystem::_updateManager |
|
protected |
No default value is provided for _updateManager by OSystem.
- Note
- _updateManager is deleted by the OSystem destructor.
◆ _textToSpeechManager
Common::TextToSpeechManager* OSystem::_textToSpeechManager |
|
protected |
No default value is provided for _textToSpeechManager by OSystem.
- Note
- _textToSpeechManager is deleted by the OSystem destructor.
◆ _dialogManager
Common::DialogManager* OSystem::_dialogManager |
|
protected |
No default value is provided for _dialogManager by OSystem.
- Note
- _dialogManager is deleted by the OSystem destructor.
◆ _fsFactory
FilesystemFactory* OSystem::_fsFactory |
|
protected |
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.
◆ _clipboard
Common::U32String OSystem::_clipboard |
|
protected |
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.