mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
PathManager refactor, fixes "CheckinHandle"
This commit is contained in:
+3
-1
@@ -42,6 +42,8 @@ extern Clientlist *g_Clientlist;
|
||||
extern uint32 ChatMessagesSent;
|
||||
extern uint32 MailMessagesSent;
|
||||
|
||||
PathManager path;
|
||||
|
||||
int LookupCommand(const char *ChatCommand) {
|
||||
|
||||
if (!ChatCommand) return -1;
|
||||
@@ -482,7 +484,7 @@ Clientlist::Clientlist(int ChatPort) {
|
||||
const ucsconfig *Config = ucsconfig::get();
|
||||
|
||||
|
||||
std::string opcodes_file = fmt::format("{}/{}", PathManager::Instance()->GetServerPath(), Config->MailOpCodesFile);
|
||||
std::string opcodes_file = fmt::format("{}/{}", path.GetServerPath(), Config->MailOpCodesFile);
|
||||
|
||||
LogInfo("Loading [{}]", opcodes_file);
|
||||
if (!ChatOpMgr->LoadOpcodes(opcodes_file.c_str()))
|
||||
|
||||
+2
-2
@@ -102,7 +102,7 @@ int main() {
|
||||
EQEmuLogSys::Instance()->LoadLogSettingsDefaults();
|
||||
set_exception_handler();
|
||||
|
||||
PathManager::Instance()->Init();
|
||||
path.LoadPaths();
|
||||
|
||||
// Check every minute for unused channels we can delete
|
||||
//
|
||||
@@ -136,7 +136,7 @@ int main() {
|
||||
|
||||
EQEmuLogSys::Instance()
|
||||
->SetDatabase(&database)
|
||||
->SetLogPath(PathManager::Instance()->GetLogPath())
|
||||
->SetLogPath(path.GetLogPath())
|
||||
->LoadLogDatabaseSettings()
|
||||
->StartFileLogs();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user