From dc993b871f161102c417dc1c4e3f62bbd50ec96a Mon Sep 17 00:00:00 2001 From: CiiLu <109708109+CiiLu@users.noreply.github.com> Date: Mon, 9 Feb 2026 20:37:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A0=E7=89=88=E6=9C=AC=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E6=B8=B8=E6=88=8F=E4=B8=8D=E9=80=89=E6=8B=A9=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=8A=B6=E6=80=81=E4=B8=BA=E2=80=9C=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E2=80=9D=E7=89=88=E6=9C=AC=20(#5462)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Glavo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../main/java/org/jackhuang/hmcl/ui/main/MainPage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java index 848517868..e5f092c72 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java @@ -64,12 +64,12 @@ import org.jackhuang.hmcl.ui.versions.Versions; import org.jackhuang.hmcl.upgrade.RemoteVersion; import org.jackhuang.hmcl.upgrade.UpdateChecker; import org.jackhuang.hmcl.upgrade.UpdateHandler; -import org.jackhuang.hmcl.util.Holder; -import org.jackhuang.hmcl.util.Lang; -import org.jackhuang.hmcl.util.StringUtils; -import org.jackhuang.hmcl.util.TaskCancellationAction; +import org.jackhuang.hmcl.util.*; import org.jackhuang.hmcl.util.i18n.I18n; import org.jackhuang.hmcl.util.javafx.BindingMapping; +import org.jackhuang.hmcl.util.platform.OperatingSystem; +import org.jackhuang.hmcl.util.platform.Platform; +import org.jackhuang.hmcl.util.versioning.GameVersionNumber; import java.io.IOException; import java.util.List; @@ -320,6 +320,7 @@ public final class MainPage extends StackPane implements DecoratorPage { Task task = versionList.refreshAsync("") .thenSupplyAsync(() -> versionList.getVersions("").stream() .filter(it -> it.getVersionType() == RELEASE) + .filter(it -> NativePatcher.checkSupportedStatus(GameVersionNumber.asGameVersion(it.getGameVersion()), Platform.SYSTEM_PLATFORM, OperatingSystem.SYSTEM_VERSION) != NativePatcher.SupportStatus.UNSUPPORTED) .sorted() .findFirst() .orElseThrow(() -> new IOException("No versions found")))