From 447c314164c2959c359a5ae5447ac162171a0e5a Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sat, 28 Oct 2023 20:57:38 +0800 Subject: [PATCH] fix EPTU --- lib/ui/home/home_ui_model.dart | 2 +- lib/ui/home/login/login_dialog_ui_model.dart | 4 ++-- lib/ui/tools/tools_ui_model.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ui/home/home_ui_model.dart b/lib/ui/home/home_ui_model.dart index 5de245f..17c9332 100644 --- a/lib/ui/home/home_ui_model.dart +++ b/lib/ui/home/home_ui_model.dart @@ -123,7 +123,7 @@ class HomeUIModel extends BaseUIModel { return; } scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData, - withVersion: ["LIVE", "PTU", "EVO"], checkExists: true); + withVersion: ["LIVE", "PTU", "EPTU"], 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 6cafc7b..1426ee0 100644 --- a/lib/ui/home/login/login_dialog_ui_model.dart +++ b/lib/ui/home/login/login_dialog_ui_model.dart @@ -189,8 +189,8 @@ class LoginDialogModel extends BaseUIModel { return "LIVE"; } else if (installPath.endsWith("\\PTU")) { return "PTU"; - } else if (installPath.endsWith("\\EVO")) { - return "EVO"; + } else if (installPath.endsWith("\\EPTU")) { + return "EPTU"; } return "LIVE"; } diff --git a/lib/ui/tools/tools_ui_model.dart b/lib/ui/tools/tools_ui_model.dart index eb6d21a..43ff85e 100644 --- a/lib/ui/tools/tools_ui_model.dart +++ b/lib/ui/tools/tools_ui_model.dart @@ -183,7 +183,7 @@ class ToolsUIModel extends BaseUIModel { return; } scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData, - checkExists: false, withVersion: ["LIVE", "PTU", "EVO"]); + checkExists: false, withVersion: ["LIVE", "PTU", "EPTU"]); if (scInstallPaths.isNotEmpty) { scInstalledPath = scInstallPaths.first; }