mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 16:32:21 +00:00
[Code] PathManager Global to Singleton Cleanup (#4924)
This commit is contained in:
1 parent
e846bb86b6
commit
df86ad371b
33 files changed
+83
-89
No files matched your search
+2
-3
@@ -48,7 +48,6 @@ EQEmuLogSys LogSys;
|
||||
UCSDatabase database;
|
||||
WorldServer *worldserver = nullptr;
|
||||
DiscordManager discord_manager;
|
||||
PathManager path;
|
||||
ZoneStore zone_store;
|
||||
PlayerEventLogs player_event_logs;
|
||||
|
||||
@@ -107,7 +106,7 @@ int main() {
|
||||
LogSys.LoadLogSettingsDefaults();
|
||||
set_exception_handler();
|
||||
|
||||
path.LoadPaths();
|
||||
PathManager::Instance()->Init();
|
||||
|
||||
// Check every minute for unused channels we can delete
|
||||
//
|
||||
@@ -140,7 +139,7 @@ int main() {
|
||||
}
|
||||
|
||||
LogSys.SetDatabase(&database)
|
||||
->SetLogPath(path.GetLogPath())
|
||||
->SetLogPath(PathManager::Instance()->GetLogPath())
|
||||
->LoadLogDatabaseSettings()
|
||||
->StartFileLogs();
|
||||
|
||||
|
||||
Reference in new issue
Block a user