mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 01:44:23 +02:00
- headless server now supports lan option
This commit is contained in:
@@ -214,6 +214,8 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
|
||||
printf("\n \t has no more connected players.");
|
||||
printf("\n \t\tvps - which does NOT read commands from the");
|
||||
printf("\n \t local console (for some vps's).");
|
||||
printf("\n \t\tlan - which does not broadcast the hosting server");
|
||||
printf("\n \t to the masterserver (for local LAN games).");
|
||||
|
||||
printf("\n%s\tCheck the current status of a headless server.",GAME_ARGS[GAME_ARG_MASTERSERVER_STATUS]);
|
||||
|
||||
|
@@ -28,6 +28,15 @@ using namespace Shared::Platform;
|
||||
|
||||
namespace Shared { namespace Util {
|
||||
|
||||
enum GlobalStaticFlagTypes {
|
||||
gsft_none = 0x00,
|
||||
gsft_lan_mode = 0x01,
|
||||
//gsft_xx = 0x02
|
||||
//gsft__xx = 0x04,
|
||||
//gsft__xx = 0x08,
|
||||
//gsft__xx = 0x10,
|
||||
};
|
||||
|
||||
class GlobalStaticFlags {
|
||||
public:
|
||||
static bool getIsNonGraphicalModeEnabled() {
|
||||
@@ -38,8 +47,15 @@ public:
|
||||
isNonGraphicalMode = value;
|
||||
}
|
||||
|
||||
static void setFlags(uint64 flagsValue) { flags = flagsValue; }
|
||||
static uint64 getFlags() { return flags; }
|
||||
|
||||
static void setFlag(GlobalStaticFlagTypes flag) { flags |= flag; }
|
||||
static bool isFlagSet(GlobalStaticFlagTypes flag) { return (flags & flag) == flag; }
|
||||
|
||||
protected:
|
||||
static bool isNonGraphicalMode;
|
||||
static uint64 flags;
|
||||
};
|
||||
|
||||
class SystemFlags
|
||||
|
@@ -46,6 +46,8 @@ using namespace Shared::Util;
|
||||
namespace Shared{ namespace Util{
|
||||
|
||||
bool GlobalStaticFlags::isNonGraphicalMode = false;
|
||||
uint64 GlobalStaticFlags::flags = gsft_none;
|
||||
|
||||
// Init statics
|
||||
std::map<SystemFlags::DebugType,SystemFlags::SystemFlagsType> *SystemFlags::debugLogFileList = NULL;
|
||||
int SystemFlags::lockFile = -1;
|
||||
|
Reference in New Issue
Block a user