Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions | Variables
main.cpp File Reference
#include "Globals.h"
#include "main.h"
#include "BuildInfo.h"
#include "Logger.h"
#include "MemorySettingsRepository.h"
#include "Root.h"
#include "tclap/CmdLine.h"
#include "OSSupport/ConsoleSignalHandler.h"
#include "OSSupport/NetworkSingleton.h"
#include "OSSupport/MiniDumpWriter.h"
#include "OSSupport/SleepResolutionBooster.h"
#include "OSSupport/StartAsService.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
static void ParseArguments (int argc, char **argv, cMemorySettingsRepository &a_Settings)
 
static int UniversalMain (int argc, char *argv[], const bool a_RunningAsService)
 

Variables

bool g_RunAsService
 If set to true, binary will attempt to run as a service. More...
 
bool g_ShouldLogCommIn
 If set to true, the protocols will log each player's incoming (C->S) communication to a per-connection logfile. More...
 
bool g_ShouldLogCommOut
 If set to true, the protocols will log each player's outgoing (S->C) communication to a per-connection logfile. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 211 of file main.cpp.

◆ ParseArguments()

static void ParseArguments ( int  argc,
char **  argv,
cMemorySettingsRepository a_Settings 
)
static

Definition at line 32 of file main.cpp.

◆ UniversalMain()

static int UniversalMain ( int  argc,
char *  argv[],
const bool  a_RunningAsService 
)
static

Definition at line 110 of file main.cpp.

Variable Documentation

◆ g_RunAsService

bool g_RunAsService

If set to true, binary will attempt to run as a service.

Definition at line 23 of file main.cpp.

◆ g_ShouldLogCommIn

bool g_ShouldLogCommIn

If set to true, the protocols will log each player's incoming (C->S) communication to a per-connection logfile.

Definition at line 21 of file main.cpp.

◆ g_ShouldLogCommOut

bool g_ShouldLogCommOut

If set to true, the protocols will log each player's outgoing (S->C) communication to a per-connection logfile.

Definition at line 22 of file main.cpp.