mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-08 08:12:38 +00:00
zone LoadLogSysSettings
This commit is contained in:
parent
44b65d1ee5
commit
0d2c396680
11
zone/net.cpp
11
zone/net.cpp
@ -115,8 +115,7 @@ extern void MapOpcodes();
|
|||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformZone);
|
RegisterExecutablePlatform(ExePlatformZone);
|
||||||
logger.LoadLogSettings();
|
|
||||||
logger.OnLogHookCallBackZone(&ClientLogs::ClientMessage);
|
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
const char *zone_name;
|
const char *zone_name;
|
||||||
@ -149,8 +148,6 @@ int main(int argc, char** argv) {
|
|||||||
worldserver.SetLauncherName("NONE");
|
worldserver.SetLauncherName("NONE");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::Zone_Server, "Loading server configuration..");
|
logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::Zone_Server, "Loading server configuration..");
|
||||||
if (!ZoneConfig::LoadConfig()) {
|
if (!ZoneConfig::LoadConfig()) {
|
||||||
logger.Log(EQEmuLogSys::Error, "Loading server configuration failed.");
|
logger.Log(EQEmuLogSys::Error, "Loading server configuration failed.");
|
||||||
@ -175,6 +172,12 @@ int main(int argc, char** argv) {
|
|||||||
logger.Log(EQEmuLogSys::Error, "Cannot continue without a database connection.");
|
logger.Log(EQEmuLogSys::Error, "Cannot continue without a database connection.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Register Log System and Settings */
|
||||||
|
logger.LoadLogSettings();
|
||||||
|
logger.OnLogHookCallBackZone(&ClientLogs::ClientMessage);
|
||||||
|
database.LoadLogSysSettings(logger.log_settings);
|
||||||
|
|
||||||
guild_mgr.SetDatabase(&database);
|
guild_mgr.SetDatabase(&database);
|
||||||
|
|
||||||
GuildBanks = nullptr;
|
GuildBanks = nullptr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user