mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 14:03:34 +00:00
b7341c8106
* Resolve warnings and change init order Initialize dConfig first, before logger so we know whether or not to log to console Initialize namespace Game variables to nullptr so they are a known value if accessed before initialization. Removed unused Game variables Replaced config with a pointer instead of referencing something on the stack. Assign return values to system calls to silence warnings. Tested that the server still compiles, runs and allows me to load into the game. * Only start Master of config files exist Also default the logging to console to on on the off chance the files exist but are wrong / corrupted.
14 lines
274 B
C++
14 lines
274 B
C++
#include "GameDependencies.h"
|
|
|
|
namespace Game {
|
|
dLogger* logger;
|
|
dServer* server;
|
|
dZoneManager* zoneManager;
|
|
dChatFilter* chatFilter;
|
|
dConfig* config;
|
|
std::mt19937 randomEngine;
|
|
RakPeerInterface* chatServer;
|
|
AssetManager* assetManager;
|
|
SystemAddress chatSysAddr;
|
|
}
|