Public Member Functions | |
void | init () override |
void | initBackend () override |
void | addSysArchivesToSearchSet (Common::SearchSet &s, int priority=0) override |
bool | hasFeature (Feature f) override |
bool | displayLogFile () override |
bool | openUrl (const Common::String &url) override |
void | logMessage (LogMessageType::Type type, const char *message) override |
Common::String | getSystemLanguage () const override |
Common::Path | getDefaultIconsPath () override |
Common::Path | getDefaultDLCsPath () override |
Common::Path | getScreenshotsPath () override |
Public Member Functions inherited from OSystem_SDL | |
void | setFeatureState (Feature f, bool enable) override |
bool | getFeatureState (Feature f) override |
void | engineInit () override |
void | engineDone () override |
void | quit () override |
void | fatalError () override |
Common::KeymapArray | getGlobalKeymaps () override |
Common::HardwareInputSet * | getHardwareInputSet () override |
void | setWindowCaption (const Common::U32String &caption) override |
Common::MutexInternal * | createMutex () override |
uint32 | getMillis (bool skipRecord=false) override |
void | delayMillis (uint msecs) override |
void | getTimeAndDate (TimeDate &td, bool skipRecord=false) const override |
MixerManager * | getMixerManager () override |
Common::TimerManager * | getTimerManager () override |
Common::SaveFileManager * | getSavefileManager () override |
uint32 | getDoubleClickTime () const override |
Public Member Functions inherited from ModularMixerBackend | |
Audio::Mixer * | getMixer () override final |
Public Member Functions inherited from BaseBackend | |
bool | setScaler (const char *name, int factor) override final |
Public Member Functions inherited from OSystem | |
void | destroy () |
bool | backendInitialized () const |
virtual void | taskStarted (Task) |
virtual void | taskFinished (Task) |
virtual void | updateStartSettings (const Common::String &executable, Common::String &command, Common::StringMap &startSettings, Common::StringArray &additionalArgs) |
bool | setGraphicsMode (const char *name) |
Graphics::PixelFormat | getScreenFormat () const |
Common::List< Graphics::PixelFormat > | getSupportedFormats () const |
virtual Common::Array< uint > | getSupportedAntiAliasingLevels () const |
virtual OpenGL::ContextType | getOpenGLType () const |
bool | setStretchMode (const char *name) |
Common::EventManager * | getEventManager () |
virtual Common::KeymapperDefaultBindings * | getKeymapperDefaultBindings () |
AudioCDManager * | getAudioCDManager () |
virtual Common::TextToSpeechManager * | getTextToSpeechManager () |
virtual Common::DialogManager * | getDialogManager () |
virtual DLC::Store * | getDLCStore () |
virtual FilesystemFactory * | getFilesystemFactory () |
virtual Common::SeekableReadStream * | createConfigReadStream () |
virtual Common::WriteStream * | createConfigWriteStream () |
virtual void | registerDefaultSettings (const Common::String &target) const |
virtual GUI::OptionsContainerWidget * | buildBackendOptionsWidget (GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const |
virtual void | applyBackendSettings () |
virtual void | messageBox (LogMessageType::Type type, const char *message) |
virtual bool | hasTextInClipboard () |
virtual Common::U32String | getTextFromClipboard () |
virtual bool | setTextInClipboard (const Common::U32String &text) |
virtual bool | isConnectionLimited () |
Public Member Functions inherited from ModularGraphicsBackend | |
GraphicsManager * | getGraphicsManager () |
const GraphicsMode * | getSupportedGraphicsModes () const override |
int | getDefaultGraphicsMode () const override |
bool | setGraphicsMode (int mode, uint flags=kGfxModeNoFlags) override |
int | getGraphicsMode () const override |
bool | setShader (const Common::Path &name) override final |
const GraphicsMode * | getSupportedStretchModes () const override final |
int | getDefaultStretchMode () const override final |
bool | setStretchMode (int mode) override final |
int | getStretchMode () const override final |
uint | getDefaultScaler () const override final |
uint | getDefaultScaleFactor () const override final |
bool | setScaler (uint mode, int factor) override final |
uint | getScaler () const override final |
uint | getScaleFactor () const override final |
void | initSize (uint width, uint height, const Graphics::PixelFormat *format=NULL) override final |
void | initSizeHint (const Graphics::ModeList &modes) override final |
int | getScreenChangeID () const override final |
void | beginGFXTransaction () override final |
OSystem::TransactionError | endGFXTransaction () override final |
int16 | getHeight () override final |
int16 | getWidth () override final |
PaletteManager * | getPaletteManager () override final |
void | copyRectToScreen (const void *buf, int pitch, int x, int y, int w, int h) override final |
Graphics::Surface * | lockScreen () override final |
void | unlockScreen () override final |
void | fillScreen (uint32 col) override final |
void | fillScreen (const Common::Rect &r, uint32 col) override final |
void | updateScreen () override final |
void | setShakePos (int shakeXOffset, int shakeYOffset) override final |
void | setFocusRectangle (const Common::Rect &rect) override final |
void | clearFocusRectangle () override final |
void | showOverlay (bool inGUI) override final |
void | hideOverlay () override final |
bool | isOverlayVisible () const override final |
Graphics::PixelFormat | getOverlayFormat () const override final |
void | clearOverlay () override final |
void | grabOverlay (Graphics::Surface &surface) override final |
void | copyRectToOverlay (const void *buf, int pitch, int x, int y, int w, int h) override final |
int16 | getOverlayHeight () override final |
int16 | getOverlayWidth () override final |
float | getHiDPIScreenFactor () const override final |
bool | showMouse (bool visible) override final |
void | warpMouse (int x, int y) override final |
void | setMouseCursor (const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale=false, const Graphics::PixelFormat *format=NULL, const byte *mask=NULL) override final |
void | setCursorPalette (const byte *colors, uint start, uint num) override final |
bool | lockMouse (bool lock) override final |
void | displayMessageOnOSD (const Common::U32String &msg) override final |
void | displayActivityIconOnOSD (const Graphics::Surface *icon) override final |
void | saveScreenshot () override final |
Protected Member Functions | |
Common::Path | getDefaultConfigFileName () override |
Common::Path | getDefaultLogFileName () override |
AudioCDManager * | createAudioCDManager () override |
HWND | getHwnd () |
uint32 | getOSDoubleClickTime () const override |
Protected Member Functions inherited from OSystem_SDL | |
virtual void | initSDL () |
virtual Common::WriteStream * | createLogFile () |
virtual const char *const * | buildHelpDialogData () override |
|
overridevirtual |
Pre-initialize backend. It should be called after instantiating the backend. Early needed managers are created here.
Reimplemented from OSystem_SDL.
|
overridevirtual |
The following method is called once, from main.cpp, after all config data (including command line params etc.) is fully loaded.
Reimplemented from OSystem_SDL.
|
overridevirtual |
Add system-specific Common::Archive objects to the given SearchSet. For example, on Unix, the directory corresponding to DATA_PATH (if set), or, on macOS, the 'Resource' dir in the app bundle.
s | SearchSet to which the system-specific dirs, if any, are added. |
priority | Priority with which those dirs are added. |
Reimplemented from OSystem_SDL.
|
overridevirtual |
Determine whether the backend supports the specified feature.
Reimplemented from OSystem_SDL.
|
overridevirtual |
Open the log file in a way that allows the user to review it, and possibly email it (or parts of it) to the ScummVM team, for example as part of a bug report.
On a desktop operating system, this would typically launch some kind of an (external) text editor / viewer. On a phone, it can also cause a context switch to another application. Finally, on some ports, it might not be supported at all, and do nothing.
The kFeatureDisplayLogFile feature flag can be used to test whether this call has been implemented by the active backend.
Reimplemented from OSystem.
|
overridevirtual |
Open the given URL in the default browser (if available on the target system).
url | The URL to open. |
Reimplemented from OSystem.
|
overridevirtual |
Log the given message.
It is up to the backend where to log the different messages. The backend should aim at using a non-buffered output for it, so that no log data is lost in case of a crash.
The default implementation outputs them on stdout/stderr.
type | Type of the message. |
message | The message itself. |
Reimplemented from OSystem_SDL.
|
overridevirtual |
Return the language of the system.
This returns the currently set language of the system on which ScummVM is run.
The format is an ISO 639 language code, optionally followed by an ISO 3166-1 country code in the form language_country.
For information about POSIX locales, see the following link: https://en.wikipedia.org/wiki/ISO_639 https://en.wikipedia.org/wiki/ISO_3166-1
The default implementation returns "en_US".
Reimplemented from OSystem_SDL.
|
overrideprotectedvirtual |
Get the default file name (or even path) where the user configuration of ScummVM will be saved.
Note that not all ports can use this.
Reimplemented from OSystem.
|
overrideprotectedvirtual |
Get the default file name (or even path) where the scummvm.log will be saved.
Note that not all ports can use this.
Reimplemented from OSystem.
|
overrideprotectedvirtual |
Create the audio CD manager
Reimplemented from OSystem_SDL.