 |
Gorgon Game Engine
|
Go to the documentation of this file.
62 std::string
GetEnvVar(
const std::string &var);
113 bool Start(
const std::string &name,
const std::vector<std::string> &args=std::vector<std::string>());
118 bool Open(
const std::string &file);
std::string GetDocumentsPath()
Returns the path where documents of the user should be saved.
Definition: Linux.cpp:41
std::string arch
The name of the architecture, this number is independent of compiled platform of Gorgon Library.
Definition: OS.h:99
int major
Major version.
Definition: OS.h:82
int revision
Revision.
Definition: OS.h:88
std::string GetName()
Returns the name of the current operating system in human readable form.
Definition: Linux.cpp:65
bool Open(const std::string &file)
Opens the given file with the related application.
Definition: Linux.cpp:268
std::string GetEnvVar(const std::string &var)
Returns the value of an environment variable.
Definition: Linux.cpp:17
bool Start(const std::string &name, const std::vector< std::string > &args=std::vector< std::string >())
Starts the given application.
Definition: Linux.cpp:116
void DisplayMessage(const std::string &message)
This function shows a OS message box to display errors, for other messages its better to use in-game ...
Definition: Linux.cpp:104
This structure represents the version of the operating system.
Definition: OS.h:69
std::string GetAppDataPath()
Returns the directory where the system wide application data is stored.
Definition: Linux.cpp:108
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
std::string GetUsername()
Returns the current username.
Definition: Linux.cpp:27
Info GetInfo()
Returns information related with the operating system, including version, name, and architecture.
std::string GetAppSettingPath()
Returns the directory where the system wide application settings is stored.
Definition: Linux.cpp:112
std::string GetDataPath()
Returns the path where applications can save data related to this user.
Definition: Linux.cpp:53
@ Linux
Definition: OS.h:72
std::string GetHomePath()
Returns the home directory of the user.
Definition: Linux.cpp:49
bool IsAdmin()
Check if the currently logged in user is an administrator.
Definition: Linux.cpp:57
int buildnumber
Build number.
Definition: OS.h:91
std::string name
Name of the current operating system.
Definition: OS.h:79
void processmessages()
This method will notify the system should process any messages that coming from the operating system.
Definition: Linux.cpp:281
int archbits
Number of bits in the architecture, this number is independent of compiled platform of Gorgon Library...
Definition: OS.h:95
int minor
Minor version.
Definition: OS.h:85
@ Windows
Definition: OS.h:71
void OpenTerminal()
Opens a terminal window to display output from the stdout.
Definition: Linux.cpp:101
void Initialize()
Initializes operating system module.
Definition: Linux.cpp:62
Type type
Identifier for the current operating system.
Definition: OS.h:76
std::string GetName()
Returns the name of the current user.
Definition: Linux.cpp:33