RigsofRods
Soft-body Physics Simulation
|
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 = '/' |
Integration with host OS, hardware and drivers.
void RoR::CreateFolder | ( | const char * | path | ) |
Path must be UTF-8 encoded.
Definition at line 175 of file PlatformUtils.cpp.
|
inline |
bool RoR::FileExists | ( | const char * | path | ) |
Path must be UTF-8 encoded.
Definition at line 163 of file PlatformUtils.cpp.
|
inline |
bool RoR::FolderExists | ( | const char * | path | ) |
Path must be UTF-8 encoded.
Definition at line 169 of file PlatformUtils.cpp.
|
inline |
std::string RoR::GetExecutablePath | ( | ) |
Returns UTF-8 path or empty string on error.
Definition at line 185 of file PlatformUtils.cpp.
std::time_t RoR::GetFileLastModifiedTime | ( | std::string const & | path | ) |
std::string RoR::GetParentDirectory | ( | const char * | src_buff | ) |
Returns UTF-8 path without trailing slash.
Definition at line 209 of file PlatformUtils.cpp.
std::string RoR::GetUserHomeDirectory | ( | ) |
Returns UTF-8 path or empty string on error.
Definition at line 180 of file PlatformUtils.cpp.
void RoR::OpenUrlInDefaultBrowser | ( | std::string const & | url | ) |
|
inline |
char RoR::PATH_SLASH = '/' |
Definition at line 161 of file PlatformUtils.cpp.