ES-DE/es-core/src/platform.h

25 lines
493 B
C
Raw Normal View History

#pragma once
#ifndef ES_CORE_PLATFORM_H
#define ES_CORE_PLATFORM_H
2017-11-01 22:21:10 +00:00
#include <string>
//why the hell this naming inconsistency exists is well beyond me
#ifdef WIN32
#define sleep Sleep
2012-09-10 18:48:00 +00:00
#endif
enum QuitMode
{
QUIT = 0,
RESTART = 1,
SHUTDOWN = 2,
REBOOT = 3
};
int runSystemCommand(const std::string& cmd_utf8); // run a utf-8 encoded in the shell (requires wstring conversion on Windows)
int quitES(QuitMode mode = QuitMode::QUIT);
void processQuitMode();
#endif // ES_CORE_PLATFORM_H