From d77f556890938d509a4302cebdf74e103c0d52f0 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Wed, 1 Nov 2023 19:40:50 +0800 Subject: [PATCH] 2.9.7 Beta 23 --- lib/common/conf.dart | 2 +- lib/ui/home/home_ui_model.dart | 3 ++- lib/ui/home/login/login_dialog_ui_model.dart | 2 ++ lib/ui/tools/tools_ui_model.dart | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/common/conf.dart b/lib/common/conf.dart index e09af4f..cd67049 100644 --- a/lib/common/conf.dart +++ b/lib/common/conf.dart @@ -15,7 +15,7 @@ import '../base/ui.dart'; class AppConf { static const String appVersion = "2.9.7 Beta"; static const int appVersionCode = 23; - static const String appVersionDate = "2023-10-30"; + static const String appVersionDate = "2023-11-01"; static const String gitlabHomeUrl = "https://jihulab.com/StarCitizenCN_Community/StarCitizenDoctor"; diff --git a/lib/ui/home/home_ui_model.dart b/lib/ui/home/home_ui_model.dart index d3c64da..d3c00c9 100644 --- a/lib/ui/home/home_ui_model.dart +++ b/lib/ui/home/home_ui_model.dart @@ -125,7 +125,8 @@ class HomeUIModel extends BaseUIModel { return; } scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData, - withVersion: ["LIVE", "PTU", "EPTU"], checkExists: true); + withVersion: ["LIVE", "PTU", "EPTU", "TECH-PREVIEW"], + checkExists: true); if (scInstallPaths.isNotEmpty) { scInstalledPath = scInstallPaths.first; } diff --git a/lib/ui/home/login/login_dialog_ui_model.dart b/lib/ui/home/login/login_dialog_ui_model.dart index 1426ee0..08086dc 100644 --- a/lib/ui/home/login/login_dialog_ui_model.dart +++ b/lib/ui/home/login/login_dialog_ui_model.dart @@ -191,6 +191,8 @@ class LoginDialogModel extends BaseUIModel { return "PTU"; } else if (installPath.endsWith("\\EPTU")) { return "EPTU"; + } else if (installPath.endsWith("\\TECH-PREVIEW")) { + return "TECH-PREVIEW"; } return "LIVE"; } diff --git a/lib/ui/tools/tools_ui_model.dart b/lib/ui/tools/tools_ui_model.dart index 37daed4..80123cc 100644 --- a/lib/ui/tools/tools_ui_model.dart +++ b/lib/ui/tools/tools_ui_model.dart @@ -185,7 +185,8 @@ class ToolsUIModel extends BaseUIModel { return; } scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData, - checkExists: false, withVersion: ["LIVE", "PTU", "EPTU"]); + checkExists: false, + withVersion: ["LIVE", "PTU", "EPTU", "TECH-PREVIEW"]); if (scInstallPaths.isNotEmpty) { scInstalledPath = scInstallPaths.first; }