From 50e6fb3c094c5faac834f14975307be5093a5e3e Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 6 Jan 2025 20:08:08 +0800 Subject: [PATCH] =?UTF-8?q?config=EF=BC=9A=E5=8F=98=E6=9B=B4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BD=8D=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/config.cpp b/client/config.cpp index bdb91c0..50f104f 100644 --- a/client/config.cpp +++ b/client/config.cpp @@ -19,8 +19,8 @@ CServerConfig::~CServerConfig() bool CServerConfig::baseInit() { - fs::path home(COfPath::get_home()); - config_path_ = home.append("transm.ini").string(); + fs::path tpath(COfPath::get_config_dir("transm", true)); + config_path_ = tpath.append("transm.ini").string(); if (!fs::exists(config_path_)) { gen_default_ini(config_path_); }