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

Public Member Functions

void Init () override
 Performs platform-specific initialization.
 
std::string GetDataPath () override
 Returns the data path (containing textures, levels, helpfiles, etc)
 
std::string GetLangPath () override
 Returns the translations path.
 
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.
 
- Public Member Functions inherited from CSystemUtilsOther
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)
 
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 CSystemUtilsMacOSX::Init ( )
overridevirtual

Performs platform-specific initialization.

Implements CSystemUtils.

◆ GetDataPath()

std::string CSystemUtilsMacOSX::GetDataPath ( )
overridevirtual

Returns the data path (containing textures, levels, helpfiles, etc)

Reimplemented from CSystemUtils.

◆ GetLangPath()

std::string CSystemUtilsMacOSX::GetLangPath ( )
overridevirtual

Returns the translations path.

Reimplemented from CSystemUtils.

◆ GetSaveDir()

std::string CSystemUtilsMacOSX::GetSaveDir ( )
overridevirtual

Returns the save dir location.

Reimplemented from CSystemUtils.

◆ GetEnvVar()

std::string CSystemUtilsMacOSX::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 CSystemUtilsMacOSX::OpenPath ( const std::string &  path)
overridevirtual

Opens a path with default file browser.

Returns
true if successful

Reimplemented from CSystemUtils.

◆ OpenWebsite()

bool CSystemUtilsMacOSX::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: