From 87a8af0ad71a11c248ba94c9ba20668dcb0fe831 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 2 Apr 2024 16:41:26 +0100 Subject: Use the paths from the build system instead of hardcoding them. --- src/init.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/init.cpp b/src/init.cpp index df53ee908..7c760d1af 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -30,7 +30,11 @@ #endif #include -Anope::string Anope::ConfigDir = "conf", Anope::DataDir = "data", Anope::ModuleDir = "lib", Anope::LocaleDir = "locale", Anope::LogDir = "logs"; +Anope::string Anope::ConfigDir = DEFAULT_CONF_DIR; +Anope::string Anope::DataDir = DEFAULT_DATA_DIR; +Anope::string Anope::LocaleDir = DEFAULT_LOCALE_DIR; +Anope::string Anope::LogDir = DEFAULT_LOG_DIR; +Anope::string Anope::ModuleDir = DEFAULT_MODULE_DIR; /* Vector of pairs of command line arguments and their params */ static std::vector > CommandLineArguments; -- cgit