From 0e45c836c990c9c8587b34dc080a0ffbf41cc2a7 Mon Sep 17 00:00:00 2001 From: lincube Date: Sun, 26 Apr 2026 00:48:59 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E8=A7=A3=E5=86=B3=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E6=97=B6=E9=81=87=E5=88=B0=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LanMountainDesktop.Launcher/Services/DataLocationResolver.cs | 4 +++- get_git_log.py | 0 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 get_git_log.py diff --git a/LanMountainDesktop.Launcher/Services/DataLocationResolver.cs b/LanMountainDesktop.Launcher/Services/DataLocationResolver.cs index 860b884..2fc0cd6 100644 --- a/LanMountainDesktop.Launcher/Services/DataLocationResolver.cs +++ b/LanMountainDesktop.Launcher/Services/DataLocationResolver.cs @@ -131,7 +131,9 @@ internal sealed class DataLocationResolver { try { - var configPath = ResolveConfigPath(); + // 配置文件必须位于默认系统数据路径下的 Launcher 目录中 + // 避免循环依赖:不能调用 ResolveConfigPath() -> ResolveLauncherDataPath() -> ResolveDataRoot() -> LoadConfig() + var configPath = Path.Combine(_defaultSystemDataPath, LauncherFolderName, ConfigFileName); if (!File.Exists(configPath)) { return null; diff --git a/get_git_log.py b/get_git_log.py new file mode 100644 index 0000000..e69de29