Repository navigation
在游戏下载界面提示版本支持状态 - #4471
在游戏下载界面提示版本支持状态#4471
Conversation
# 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
There was a problem hiding this comment.
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.
| private NativePatcher() { | ||
| } |
There was a problem hiding this comment.
[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.
No description provided.