|
void | Init () override |
| Performs platform-specific initialization.
|
|
SystemDialogResult | SystemDialog (SystemDialogType type, const std::string &title, const std::string &message) override |
| Displays a system dialog.
|
|
std::string | GetSaveDir () override |
| Returns the save dir location.
|
|
std::string | GetEnvVar (const std::string &name) override |
| Returns the environment variable with the given name or an empty string if it does not exist.
|
|
bool | OpenPath (const std::string &path) override |
| Opens a path with default file browser.
|
|
bool | OpenWebsite (const std::string &url) override |
| Opens a website with default web browser.
|
|
TEST_VIRTUAL SystemDialogResult | ConsoleSystemDialog (SystemDialogType type, const std::string &title, const std::string &message) |
| Displays a fallback system dialog using console.
|
|
TEST_VIRTUAL TimeUtils::TimeStamp | GetCurrentTimeStamp () |
| Returns a time stamp associated with current time.
|
|
virtual std::string | GetBasePath () |
| Returns the path where the executable binary is located (ends with the path separator)
|
|
virtual std::string | GetDataPath () |
| Returns the data path (containing textures, levels, helpfiles, etc)
|
|
virtual std::string | GetLangPath () |
| Returns the translations path.
|
|
void | Usleep (int usecs) |
| Sleep for given amount of microseconds.
|
|
|
static std::unique_ptr< CSystemUtils > | Create () |
| Creates system utils for specific platform.
|
|
◆ Init()
void CSystemUtilsLinux::Init |
( |
| ) |
|
|
overridevirtual |
Performs platform-specific initialization.
Implements CSystemUtils.
◆ SystemDialog()
◆ GetSaveDir()
std::string CSystemUtilsLinux::GetSaveDir |
( |
| ) |
|
|
overridevirtual |
Returns the save dir location.
Reimplemented from CSystemUtils.
◆ GetEnvVar()
std::string CSystemUtilsLinux::GetEnvVar |
( |
const std::string & |
name | ) |
|
|
overridevirtual |
Returns the environment variable with the given name or an empty string if it does not exist.
Reimplemented from CSystemUtils.
◆ OpenPath()
bool CSystemUtilsLinux::OpenPath |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
Opens a path with default file browser.
- Returns
- true if successful
Reimplemented from CSystemUtils.
◆ OpenWebsite()
bool CSystemUtilsLinux::OpenWebsite |
( |
const std::string & |
url | ) |
|
|
overridevirtual |
Opens a website with default web browser.
- Returns
- true if successful
Reimplemented from CSystemUtils.
The documentation for this class was generated from the following files: