mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 00:57:15 +00:00
zone LoadLogSysSettings
This commit is contained in:
+7
-4
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user