Skip to content

导出整合包时将启动器配置集中存放在 .hmcl 文件夹中#3930

Merged
Glavo merged 4 commits into
HMCL-dev:mainfrom
Glavo:json
May 23, 2025
Merged

导出整合包时将启动器配置集中存放在 .hmcl 文件夹中#3930
Glavo merged 4 commits into
HMCL-dev:mainfrom
Glavo:json

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented May 22, 2025

No description provided.

@Glavo Glavo requested a review from Copilot May 22, 2025 16:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors the export functionality to centralize the launcher configuration files inside a dedicated ".hmcl" folder.

  • Updated paths for configuration JSON, background, and font files to use the ".hmcl" subdirectory.
  • Modified file resolution logic to use fallback paths via Metadata constants.

Reviewed Changes

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

File Description
HMCL/src/main/java/org/jackhuang/hmcl/ui/export/ExportWizardProvider.java Updates file export paths and refactors folder resolution for configuration, background, and font files.
HMCL/src/main/java/org/jackhuang/hmcl/setting/FontManager.java Introduces a FONT_EXTENSIONS constant and updates font loading logic accordingly.

*/
public final class FontManager {

public static String[] FONT_EXTENSIONS = {
Copy link

Copilot AI May 22, 2025

Choose a reason for hiding this comment

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

Declare FONT_EXTENSIONS as final since it represents a constant collection.

Suggested change
public static String[] FONT_EXTENSIONS = {
public static final String[] FONT_EXTENSIONS = {

Copilot uses AI. Check for mistakes.
@Glavo Glavo merged commit 68c8a30 into HMCL-dev:main May 23, 2025
2 checks passed
@Glavo Glavo deleted the json branch May 23, 2025 10:09
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