PathManager refactor, fixes "CheckinHandle"

This commit is contained in:
m0th
2025-10-08 16:21:11 +00:00
parent e0cb925231
commit f3c5ad1aea
36 changed files with 251 additions and 256 deletions
+3 -1
View File
@@ -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
View File
@@ -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();