RigsofRods
Soft-body Physics Simulation
Data Structures | Functions | Variables
Application

Integration with host OS, hardware and drivers. More...

Data Structures

class  RoR::AppContext
 Central setup and event handler for input/windowing/rendering. More...
 
struct  ErrorUtils
 
class  RoR::LanguageEngine
 

Functions

bool RoR::FileExists (const char *path)
 Path must be UTF-8 encoded. More...
 
bool RoR::FolderExists (const char *path)
 Path must be UTF-8 encoded. More...
 
void RoR::CreateFolder (const char *path)
 Path must be UTF-8 encoded. More...
 
bool RoR::FileExists (std::string const &path)
 
bool RoR::FolderExists (std::string const &path)
 
void RoR::CreateFolder (std::string const &path)
 
std::string RoR::PathCombine (std::string a, std::string b)
 
std::string RoR::GetUserHomeDirectory ()
 Returns UTF-8 path or empty string on error. More...
 
std::string RoR::GetExecutablePath ()
 Returns UTF-8 path or empty string on error. More...
 
std::string RoR::GetParentDirectory (const char *path)
 Returns UTF-8 path without trailing slash. More...
 
std::time_t RoR::GetFileLastModifiedTime (std::string const &path)
 
void RoR::OpenUrlInDefaultBrowser (std::string const &url)
 

Variables

char RoR::PATH_SLASH = '/'
 

Detailed Description

Integration with host OS, hardware and drivers.

Function Documentation

◆ CreateFolder() [1/2]

void RoR::CreateFolder ( const char *  path)

Path must be UTF-8 encoded.

Definition at line 175 of file PlatformUtils.cpp.

+ Here is the caller graph for this function:

◆ CreateFolder() [2/2]

void RoR::CreateFolder ( std::string const &  path)
inline

Definition at line 46 of file PlatformUtils.h.

+ Here is the call graph for this function:

◆ FileExists() [1/2]

bool RoR::FileExists ( const char *  path)

Path must be UTF-8 encoded.

Definition at line 163 of file PlatformUtils.cpp.

+ Here is the caller graph for this function:

◆ FileExists() [2/2]

bool RoR::FileExists ( std::string const &  path)
inline

Definition at line 44 of file PlatformUtils.h.

+ Here is the call graph for this function:

◆ FolderExists() [1/2]

bool RoR::FolderExists ( const char *  path)

Path must be UTF-8 encoded.

Definition at line 169 of file PlatformUtils.cpp.

+ Here is the caller graph for this function:

◆ FolderExists() [2/2]

bool RoR::FolderExists ( std::string const &  path)
inline

Definition at line 45 of file PlatformUtils.h.

+ Here is the call graph for this function:

◆ GetExecutablePath()

std::string RoR::GetExecutablePath ( )

Returns UTF-8 path or empty string on error.

Definition at line 185 of file PlatformUtils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFileLastModifiedTime()

std::time_t RoR::GetFileLastModifiedTime ( std::string const &  path)

Definition at line 238 of file PlatformUtils.cpp.

+ Here is the caller graph for this function:

◆ GetParentDirectory()

std::string RoR::GetParentDirectory ( const char *  src_buff)

Returns UTF-8 path without trailing slash.

Definition at line 209 of file PlatformUtils.cpp.

+ Here is the caller graph for this function:

◆ GetUserHomeDirectory()

std::string RoR::GetUserHomeDirectory ( )

Returns UTF-8 path or empty string on error.

Definition at line 180 of file PlatformUtils.cpp.

+ Here is the caller graph for this function:

◆ OpenUrlInDefaultBrowser()

void RoR::OpenUrlInDefaultBrowser ( std::string const &  url)

Definition at line 199 of file PlatformUtils.cpp.

+ Here is the caller graph for this function:

◆ PathCombine()

std::string RoR::PathCombine ( std::string  a,
std::string  b 
)
inline

Definition at line 48 of file PlatformUtils.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ PATH_SLASH

char RoR::PATH_SLASH = '/'

Definition at line 161 of file PlatformUtils.cpp.