mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +00:00
fe86459f99
/tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown to decide what we want to do. there is an emulationstation.sh launch script to handle this
27 lines
735 B
C++
27 lines
735 B
C++
//the Makefile defines one of these:
|
|
//#define USE_OPENGL_ES
|
|
//#define USE_OPENGL_DESKTOP
|
|
|
|
#ifdef USE_OPENGL_ES
|
|
#define GLHEADER <GLES/gl.h>
|
|
#endif
|
|
|
|
#ifdef USE_OPENGL_DESKTOP
|
|
//why the hell this naming inconsistency exists is well beyond me
|
|
#ifdef WIN32
|
|
#define sleep Sleep
|
|
#endif
|
|
|
|
#define GLHEADER <SDL_opengl.h>
|
|
#endif
|
|
|
|
#include <string>
|
|
|
|
std::string getHomePath();
|
|
|
|
int runShutdownCommand(); // shut down the system (returns 0 if successful)
|
|
int runRestartCommand(); // restart the system (returns 0 if successful)
|
|
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);
|