2014-01-24 22:21:10 +00:00
|
|
|
//the Makefile defines one of these:
|
2013-05-14 20:07:19 +00:00
|
|
|
//#define USE_OPENGL_ES
|
|
|
|
//#define USE_OPENGL_DESKTOP
|
2012-09-10 18:48:00 +00:00
|
|
|
|
2013-05-14 20:07:19 +00:00
|
|
|
#ifdef USE_OPENGL_ES
|
2012-09-10 18:48:00 +00:00
|
|
|
#define GLHEADER <GLES/gl.h>
|
|
|
|
#endif
|
|
|
|
|
2013-05-14 20:07:19 +00:00
|
|
|
#ifdef USE_OPENGL_DESKTOP
|
2013-05-13 19:53:28 +00:00
|
|
|
//why the hell this naming inconsistency exists is well beyond me
|
2013-05-14 20:07:19 +00:00
|
|
|
#ifdef WIN32
|
2013-05-13 19:53:28 +00:00
|
|
|
#define sleep Sleep
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define GLHEADER <SDL_opengl.h>
|
2012-09-10 18:48:00 +00:00
|
|
|
#endif
|
2013-05-13 19:53:28 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2014-03-14 03:14:49 +00:00
|
|
|
std::string getHomePath();
|
2014-08-02 19:19:57 +00:00
|
|
|
|
2017-06-01 20:08:44 +00:00
|
|
|
|
2014-08-02 19:19:57 +00:00
|
|
|
int runShutdownCommand(); // shut down the system (returns 0 if successful)
|
|
|
|
int runRestartCommand(); // restart the system (returns 0 if successful)
|
2016-01-17 04:24:28 +00:00
|
|
|
int runSystemCommand(const std::string& cmd_utf8); // run a utf-8 encoded in the shell (requires wstring conversion on Windows)
|
|
|
|
int quitES(const std::string& filename);
|
|
|
|
void touch(const std::string& filename);
|