mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
fix: 统一 WpfGui 工作目录 (#14072)
* fix: 统一WpfGui工作目录 * chore: 漏了的cache目录 * chore: Auto update by pre-commit hooks [skip changelog] * fix: 多了一层相对目录 * feat: wpf 创建软连接 * feat: 添加 PathsHelper,提取通用地址 * feat: 提取通用目录 * fix: Combine * fix: 重构依赖后 MaaWpfGui 的 resource 路径丢失 (#14077) fix: mklink * chore: 删除弹窗 * chore: 自定义基建使用绝对路径 * perf: 简化命名 * fix: 遗漏的issue rp * fix: 基建 * perf: config.new * feat: 去除本地作业前缀 * chore: 怎么改名了 * rft: rename 添加一个Dir后缀, 直接using static * fix: remove不再使用的../../../resrouce * perf: 短点 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com> Co-authored-by: Status102 <102887808+status102@users.noreply.github.com>
This commit is contained in:
@@ -161,10 +161,10 @@ public class VersionUpdateSettingsUserControlModel : PropertyChangedBase
|
||||
{
|
||||
bool isDefaultClient = new HashSet<string> { string.Empty, "Official", "Bilibili" }.Contains(clientType);
|
||||
|
||||
string defaultJsonPath = Path.Combine(AsstProxy.MainResourcePath(), "resource/version.json");
|
||||
string defaultJsonPath = Path.Combine(PathsHelper.ResourceDir, "version.json");
|
||||
var jsonPath = isDefaultClient
|
||||
? defaultJsonPath
|
||||
: Path.Combine(AsstProxy.MainResourcePath(), $"resource/global/{clientType}/resource/version.json");
|
||||
: Path.Combine(PathsHelper.ResourceDir, $"global/{clientType}/resource/version.json");
|
||||
|
||||
string versionName;
|
||||
if (!File.Exists(defaultJsonPath) || (!isDefaultClient && !File.Exists(jsonPath)))
|
||||
|
||||
Reference in New Issue
Block a user