config:变更配置文件位置。

This commit is contained in:
taynpg 2025-01-06 20:08:08 +08:00
parent 2e4ed32b14
commit 50e6fb3c09

View File

@ -19,8 +19,8 @@ CServerConfig::~CServerConfig()
bool CServerConfig::baseInit() bool CServerConfig::baseInit()
{ {
fs::path home(COfPath::get_home()); fs::path tpath(COfPath::get_config_dir("transm", true));
config_path_ = home.append("transm.ini").string(); config_path_ = tpath.append("transm.ini").string();
if (!fs::exists(config_path_)) { if (!fs::exists(config_path_)) {
gen_default_ini(config_path_); gen_default_ini(config_path_);
} }