mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-26 07:18:47 -04:00
79b1f4ab4d
* Customizable data directory & migration * Add file/dir rename fast-path * Write data_location.json to base path on Windows; fix UTF-8 custom paths * Build fix * Another build fix * Android data directory selection * Fix CMake target ref
26 lines
577 B
C++
26 lines
577 B
C++
#ifndef DUSK_MAIN_H
|
|
#define DUSK_MAIN_H
|
|
|
|
#include <filesystem>
|
|
|
|
namespace dusk {
|
|
|
|
extern bool IsRunning;
|
|
extern bool IsShuttingDown;
|
|
extern bool IsGameLaunched;
|
|
extern bool RestartRequested;
|
|
extern std::filesystem::path ConfigPath;
|
|
|
|
#if defined(__ANDROID__) || (defined(TARGET_OS_IOS) && TARGET_OS_IOS) || \
|
|
(defined(TARGET_OS_TV) && TARGET_OS_TV)
|
|
inline constexpr bool SupportsProcessRestart = false;
|
|
#else
|
|
inline constexpr bool SupportsProcessRestart = true;
|
|
#endif
|
|
|
|
void RequestRestart() noexcept;
|
|
|
|
} // namespace dusk
|
|
|
|
#endif // DUSK_MAIN_H
|