Skip to content

Commit f0911ab

Browse files
committed
disable the daemon mode code on Windows
1 parent 0d424ba commit f0911ab

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

game/game.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Game::Game(): character() {
9494
game_state = GameStateNone;
9595
}
9696

97+
#ifndef _WIN32
9798
void Game::SetDaemonMode() {
9899
const function<void(int)> term_callback = [this](int){
99100
Close();
@@ -103,6 +104,7 @@ void Game::SetDaemonMode() {
103104
AddSignalCallback(SIGQUIT, term_callback);
104105
AddSignalCallback(SIGKILL, term_callback);
105106
}
107+
#endif
106108

107109
LoadError Game::LoadGame(const string &filename_path) {
108110
const auto file = gzopen(filename_path.c_str(), "rb");

game/game.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class Game {
3737

3838
public:
3939
Game();
40+
#ifndef _WIN32
4041
void SetDaemonMode();
42+
#endif
4143
file::LoadError LoadGame(const std::string& filename_path);
4244
file::SaveError SaveGame(const std::string& filename_path = "");
4345
[[nodiscard]] std::shared_ptr<NewGame> StartNewGame();

0 commit comments

Comments
 (0)