- initial work for a headless server. Currently this code allows you to launch a server with the commandline option: --masterserver-mode

The first client that connects to the server is the administrator and is able to change most settings and launch the game. Still lots of work to do but this is a start.
This commit is contained in:
Mark Vejvoda
2011-09-24 07:46:56 +00:00
parent 4d31968966
commit 4df997d0ca
19 changed files with 1149 additions and 40 deletions

View File

@@ -57,6 +57,7 @@ ServerInterface::ServerInterface(bool publishEnabled) :GameNetworkInterface() {
ftpServer = NULL;
inBroadcastMessage = false;
lastGlobalLagCheckTime = 0;
masterserverAdminRequestLaunch = false;
maxFrameCountLagAllowed = Config::getInstance().getInt("MaxFrameCountLagAllowed", intToStr(maxFrameCountLagAllowed).c_str());
maxFrameCountLagAllowedEver = Config::getInstance().getInt("MaxFrameCountLagAllowedEver", intToStr(maxFrameCountLagAllowedEver).c_str());
@@ -1696,8 +1697,8 @@ void ServerInterface::setGameSettings(GameSettings *serverGameSettings, bool wai
}
}
gameSettingsUpdateCount++;
}
gameSettingsUpdateCount++;
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s] END\n",__FILE__,__FUNCTION__);
}