Colobot
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CSystemUtilsOther Class Reference
Inheritance diagram for CSystemUtilsOther:
Inheritance graph
[legend]

Public Member Functions

void Init () override
 Performs platform-specific initialization.
 
SystemDialogResult SystemDialog (SystemDialogType type, const std::string &title, const std::string &message) override
 Displays a system dialog.
 
- Public Member Functions inherited from CSystemUtils
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.
 
virtual std::string GetSaveDir ()
 Returns the save dir location.
 
virtual std::string GetEnvVar (const std::string &name)
 Returns the environment variable with the given name or an empty string if it does not exist.
 
virtual bool OpenPath (const std::string &path)
 Opens a path with default file browser.
 
virtual bool OpenWebsite (const std::string &url)
 Opens a website with default web browser.
 
void Usleep (int usecs)
 Sleep for given amount of microseconds.
 

Additional Inherited Members

- Static Public Member Functions inherited from CSystemUtils
static std::unique_ptr< CSystemUtilsCreate ()
 Creates system utils for specific platform.
 

Member Function Documentation

◆ Init()

void CSystemUtilsOther::Init ( )
overridevirtual

Performs platform-specific initialization.

Implements CSystemUtils.

◆ SystemDialog()

SystemDialogResult CSystemUtilsOther::SystemDialog ( SystemDialogType  ,
const std::string &  title,
const std::string &  message 
)
overridevirtual

Displays a system dialog.

Implements CSystemUtils.


The documentation for this class was generated from the following files: