// // Platform.h // // Platform-specific functions. // #pragma once #ifndef ES_CORE_PLATFORM_H #define ES_CORE_PLATFORM_H #include // Why the hell this naming inconsistency exists is well beyond me. #ifdef _WIN64 #define sleep Sleep #endif enum QuitMode { QUIT = 0, REBOOT = 1, POWEROFF = 2 }; // Run UTF-8 encoded in the shell (requires wstring conversion on Windows). int runSystemCommand(const std::string& cmd_utf8); int quitES(QuitMode mode = QuitMode::QUIT); void processQuitMode(); #endif // ES_CORE_PLATFORM_H