mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 01:18:58 +02:00
- 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:
@@ -181,13 +181,14 @@ void Program::initNormal(WindowGl *window){
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
}
|
||||
|
||||
void Program::initServer(WindowGl *window, bool autostart,bool openNetworkSlots) {
|
||||
void Program::initServer(WindowGl *window, bool autostart,bool openNetworkSlots,
|
||||
bool masterserverMode) {
|
||||
MainMenu* mainMenu= NULL;
|
||||
|
||||
init(window);
|
||||
mainMenu= new MainMenu(this);
|
||||
setState(mainMenu);
|
||||
mainMenu->setState(new MenuStateCustomGame(this, mainMenu, openNetworkSlots, false, autostart));
|
||||
mainMenu->setState(new MenuStateCustomGame(this, mainMenu, openNetworkSlots, false, autostart, NULL, masterserverMode));
|
||||
}
|
||||
|
||||
void Program::initServer(WindowGl *window, GameSettings *settings) {
|
||||
|
Reference in New Issue
Block a user