Skip to content

在游戏下载界面提示版本支持状态 - #4471

Merged
Glavo merged 22 commits into
HMCL-dev:mainfrom
Glavo:tip
Oct 10, 2025
Merged

Glavo merged 22 commits into
HMCL-dev:mainfrom
Glavo:tip

Conversation

@Glavo

@Glavo Glavo commented Sep 13, 2025

Copy link
Copy Markdown
Member

No description provided.

# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java
#	HMCL/src/main/resources/assets/css/root.css
Copilot AI review requested due to automatic review settings October 10, 2025 08:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support status indicators to the game download interface, showing users whether specific game versions are supported on their platform. The changes convert the Platform class to a record, add new platform constants, and implement a support status checking system.

  • Converted Platform class from a traditional class to a record for cleaner code
  • Added support status checking logic for different platform/version combinations
  • Added localized strings for support status indicators in the UI

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

File Description
Platform.java Converted from class to record, added new platform constants for Linux variants
I18N*.properties Added localized strings for support status messages
NativePatcher.java Added support status checking logic and SupportStatus enum
VersionsPage.java Updated UI to display support status tags and modernized switch statements
Comments suppressed due to low confidence (1)

HMCL/src/main/java/org/jackhuang/hmcl/util/NativePatcher.java:1

  • The FREEBSD_X86_64 constant is created with Architecture.X86 but should use Architecture.X86_64 based on the constant name.
/*

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +278 to +279
private NativePatcher() {
}

Copilot AI Oct 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The private constructor was moved to the end of the class, but it should remain at the beginning for better readability of utility classes.

Copilot uses AI. Check for mistakes.
@HMCL-dev HMCL-dev deleted a comment from Copilot AI Oct 10, 2025
@Glavo
Glavo merged commit 1e74567 into HMCL-dev:main Oct 10, 2025
@Glavo
Glavo deleted the tip branch October 10, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants