File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ Game::Game(): character() {
94
94
game_state = GameStateNone;
95
95
}
96
96
97
+ #ifndef _WIN32
97
98
void Game::SetDaemonMode () {
98
99
const function<void (int )> term_callback = [this ](int ){
99
100
Close ();
@@ -103,6 +104,7 @@ void Game::SetDaemonMode() {
103
104
AddSignalCallback (SIGQUIT, term_callback);
104
105
AddSignalCallback (SIGKILL, term_callback);
105
106
}
107
+ #endif
106
108
107
109
LoadError Game::LoadGame (const string &filename_path) {
108
110
const auto file = gzopen (filename_path.c_str (), " rb" );
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ class Game {
37
37
38
38
public:
39
39
Game ();
40
+ #ifndef _WIN32
40
41
void SetDaemonMode ();
42
+ #endif
41
43
file::LoadError LoadGame (const std::string& filename_path);
42
44
file::SaveError SaveGame (const std::string& filename_path = " " );
43
45
[[nodiscard]] std::shared_ptr<NewGame> StartNewGame ();
You can’t perform that action at this time.
0 commit comments