config:变更配置文件位置。
This commit is contained in:
parent
2e4ed32b14
commit
50e6fb3c09
@ -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_);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user