mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-16 01:28:22 +00:00
[Code] PathManager Global to Singleton Cleanup (#4924)
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
LoginServer server;
|
||||
EQEmuLogSys LogSys;
|
||||
bool run_server = true;
|
||||
PathManager path;
|
||||
Database database;
|
||||
PlayerEventLogs player_event_logs;
|
||||
ZoneStore zone_store;
|
||||
@@ -52,7 +51,7 @@ void LoadDatabaseConnection()
|
||||
void LoadServerConfig()
|
||||
{
|
||||
server.config = EQ::JsonConfigFile::Load(
|
||||
fmt::format("{}/login.json", path.GetServerPath())
|
||||
fmt::format("{}/login.json", PathManager::Instance()->GetServerPath())
|
||||
);
|
||||
LogInfo("Config System Init");
|
||||
|
||||
@@ -162,7 +161,7 @@ int main(int argc, char **argv)
|
||||
LogSys.LoadLogSettingsDefaults();
|
||||
}
|
||||
|
||||
path.LoadPaths();
|
||||
PathManager::Instance()->Init();
|
||||
|
||||
// command handler
|
||||
if (argc > 1) {
|
||||
|
||||
Reference in New Issue
Block a user