Core/Game: Move singleton instances into compilation units
* Fixes issues when building shared libraries (prevents gcc and clang from providing several instance)
This commit is contained in:
@@ -70,6 +70,12 @@ PacketLog::~PacketLog()
|
||||
_file = NULL;
|
||||
}
|
||||
|
||||
PacketLog* PacketLog::instance()
|
||||
{
|
||||
static PacketLog instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void PacketLog::Initialize()
|
||||
{
|
||||
std::string logsDir = sConfigMgr->GetStringDefault("LogsDir", "");
|
||||
|
||||
Reference in New Issue
Block a user