|
pure virtual |
Quit (exit) the application.
Implemented in OSystem_Android, OSystem_Wii, OSystem_N64, OSystem_Dreamcast, OSystem_DS, OSystem_PSP, N3DS::OSystem_3DS, OSystem_iOS7, OSystem_libretro, OSystem_SDL, and OSystem_Atari.
|
virtual |
Signal that a fatal error inside the client code has occurred.
This should quit the application.
Reimplemented in OSystem_iOS7, N3DS::OSystem_3DS, and OSystem_SDL.
|
inlinevirtual |
Set a window caption or any other comparable status display to the given value.
caption | The window caption to use. |
Reimplemented in OSystem_Android, OSystem_Dreamcast, and OSystem_SDL.
|
pure virtual |
Display a message in an 'on-screen display'.
Displays a message in such a way that it is visible on or near the screen, for example in a transparent rectangle over the regular screen content, or in a message box beneath it.
The message is expected to be provided in the current TranslationManager charset.
msg | The message to display on the screen. |
Implemented in N3DS::OSystem_3DS, ModularGraphicsBackend, and BaseBackend.
|
pure virtual |
Display an icon that indicates background activity.
The icon is displayed in an 'on-screen display'. It is visible above the regular screen content or near it.
The caller keeps ownership of the icon. It is acceptable to free the surface just after the call.
There is no preferred pixel format for the icon. The backend should convert its copy of the icon to an appropriate format.
The caller must call this method again with a null pointer as a parameter to indicate the icon should no longer be displayed.
icon | The icon to display on the screen. |
Implemented in N3DS::OSystem_3DS, ModularGraphicsBackend, and BaseBackend.
|
inlinevirtual |
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 in OSystem_Android, N3DS::OSystem_3DS, OSystem_iOS7, OSystem_DS, OSystem_libretro, OSystem_SDL, OSystem_Atari, OSystem_MacOSX, OSystem_Win32, OSystem_KolibriOS, and OSystem_POSIX.
|
virtual |
Open the default config file for reading by returning a suitable ReadStream instance.
It is the caller's responsibility to delete the stream after use.
|
virtual |
Open the default config file for writing by returning a suitable WriteStream instance.
It is the callers responsibility to delete the stream after use.
May return 0 to indicate that writing to the config file is not possible.
|
virtual |
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 in OSystem_Android, OSystem_iOS7, OSystem_PSP, N3DS::OSystem_3DS, OSystem_libretro, OSystem_MacOSX, OSystem_Win32, OSystem_Atari, OSystem_POSIX, OSystem_Emscripten, OSystem_KolibriOS, OSystem_RISCOS, OSystem_PSP2, OSystem_SDL_Miyoo, OSystem_SDL_Opendingux, OSystem_PS3, and OSystem_SDL_Sailfish.
|
inlinevirtual |
Get the default file name (or even path) where the scummvm.log will be saved.
Note that not all ports can use this.
Reimplemented in OSystem_Android, OSystem_iOS7, OSystem_MacOSX, OSystem_Win32, OSystem_POSIX, OSystem_Emscripten, OSystem_KolibriOS, OSystem_RISCOS, OSystem_PSP2, OSystem_SDL_Miyoo, OSystem_SDL_Opendingux, OSystem_Switch, OSystem_PS3, and OSystem_SDL_Sailfish.
|
inlinevirtual |
Register the default values for the settings the backend uses into the configuration manager.
target | name of a config manager target |
Reimplemented in OSystem_Android, OSystem_iOS7, and N3DS::OSystem_3DS.
|
inlinevirtual |
Return a GUI widget container for configuring the specified target options.
The returned widget is shown in the Backend tab in the options dialog. Backends can build custom options dialogs.
Backends that don't want to have a Backend tab in the options dialog can return nullptr.
boss | the widget / dialog the returned widget is a child of |
name | the name the returned widget must use |
target | name of a config manager target |
Reimplemented in OSystem_Android, OSystem_iOS7, N3DS::OSystem_3DS, and OSystem_libretro.
|
inlinevirtual |
Return list of strings used for building help dialog
The strings represented in triplets:
The string list is null-terminated.
Reimplemented in OSystem_Android, OSystem_SDL, OSystem_iOS7, and OSystem_libretro.
|
inlinevirtual |
Notify the backend that the settings editable from the game tab in the options dialog may have changed and that they need to be applied if necessary.
Reimplemented in OSystem_Android, OSystem_iOS7, N3DS::OSystem_3DS, and OSystem_libretro.
|
pure virtual |
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. |
Implemented in OSystem_Android, OSystem_Wii, OSystem_N64, OSystem_DS, OSystem_iOS7, OSystem_PSP, N3DS::OSystem_3DS, OSystem_libretro, OSystem_SDL, OSystem_Win32, OSystem_Atari, OSystem_MorphOS, OSystem_RISCOS, OSystem_PSP2, and OSystem_Switch.
|
inlinevirtual |
Display a dialog box containing the given message.
type | Type of the message. |
message | The message itself. |
Reimplemented in OSystem_DS, and OSystem_RISCOS.
|
inlinevirtual |
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 in OSystem_Win32, OSystem_MacOSX, OSystem_Emscripten, and OSystem_POSIX.
|
inlinevirtual |
Check whether there is text available in the clipboard.
The kFeatureClipboardSupport feature flag can be used to test whether this call has been implemented by the active backend.
Reimplemented in OSystem_Android, OSystem_iOS7, and OSystem_MacOSX.
|
inlinevirtual |
Return clipboard contents as a string.
The kFeatureClipboardSupport feature flag can be used to test whether this call has been implemented by the active backend.
Reimplemented in OSystem_Android, OSystem_iOS7, and OSystem_MacOSX.
|
inlinevirtual |
Set the content of the clipboard to the given string.
The kFeatureClipboardSupport feature flag can be used to test whether this call has been implemented by the active backend.
Reimplemented in OSystem_Android, OSystem_iOS7, and OSystem_MacOSX.
|
inlinevirtual |
Open the given URL in the default browser (if available on the target system).
url | The URL to open. |
Reimplemented in OSystem_Android, OSystem_iOS7, OSystem_Win32, OSystem_MacOSX, and OSystem_RISCOS.
|
virtual |
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 in OSystem_Android, OSystem_Wii, OSystem_iOS7, OSystem_DS, N3DS::OSystem_3DS, OSystem_SDL, OSystem_Win32, OSystem_MacOSX, and OSystem_Switch.
|
virtual |
Return whether the connection is limited (if available on the target system).
Reimplemented in OSystem_Android, and OSystem_iOS7.