mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-13 05:49:21 -04:00
6a79bf1e79
* Add command line arguments for --develop, --load-save, and --stage * Include sstream so clang stops crying :( * Put stage load parsing in main, better load logic
39 lines
790 B
C++
39 lines
790 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;
|
|
extern std::filesystem::path CachePath;
|
|
|
|
extern uint8_t SaveRequested;
|
|
struct StageRequest {
|
|
std::string stage;
|
|
bool set;
|
|
s8 room;
|
|
s16 point;
|
|
s8 layer;
|
|
};
|
|
extern StageRequest StageRequested;
|
|
|
|
|
|
|
|
#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
|