RigsofRods
Soft-body Physics Simulation
Namespaces | Functions | Variables
PlatformUtils.cpp File Reference
#include "PlatformUtils.h"
#include "Application.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <OgrePlatform.h>
#include <OgreFileSystem.h>
#include <string>
+ Include dependency graph for PlatformUtils.cpp:

Go to the source code of this file.

Namespaces

 RoR
 

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...
 
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...
 
void RoR::OpenUrlInDefaultBrowser (std::string const &url)
 
std::string RoR::GetParentDirectory (const char *path)
 Returns UTF-8 path without trailing slash. More...
 
std::time_t RoR::GetFileLastModifiedTime (std::string const &path)
 

Variables

char RoR::PATH_SLASH = '/'
 

Detailed Description

Author
Petr Ohlidal
Date
05/2014

Definition in file PlatformUtils.cpp.