Skip to content

[Feature] 资源包管理 #4980 reforged reforged reforged#6091

Open
ToobLac wants to merge 162 commits into
HMCL-dev:mainfrom
ToobLac:resourcepack-enhancement
Open

[Feature] 资源包管理 #4980 reforged reforged reforged#6091
ToobLac wants to merge 162 commits into
HMCL-dev:mainfrom
ToobLac:resourcepack-enhancement

Conversation

@ToobLac
Copy link
Copy Markdown
Contributor

@ToobLac ToobLac commented May 16, 2026

累了,毁灭吧

See #5774

Calboot and others added 23 commits March 22, 2026 15:20
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/download/DownloadPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/AddonCheckUpdatesTask.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPageSkin.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ResourcepackListPage.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/mod/LocalModFile.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/resourcepack/ResourcepackFile.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/resourcepack/ResourcepackFolder.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/resourcepack/ResourcepackZipFile.java
…ement

# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java
…ement

# Conflicts:
#	HMCL/src/main/resources/assets/css/root.css
#	HMCLCore/src/main/java/org/jackhuang/hmcl/mod/ModManager.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/mod/curse/CurseAddon.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/mod/modrinth/ModrinthRemoteModRepository.java
@Glavo
Copy link
Copy Markdown
Member

Glavo commented May 18, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the addon management system by introducing the LocalAddonFile and LocalAddonManager base classes, unifying the handling of mods and resource packs. It replaces the legacy resource pack implementation with a more robust system that supports version compatibility checks, enabling/disabling packs via options.txt, and checking for updates from CurseForge and Modrinth. Key changes include genericized update tasks and UI pages, enhanced pack.mcmeta parsing, and centralized search query compilation. Review feedback identifies several improvement opportunities: providing localized names for background tasks to improve UX, ensuring thread safety for the localFiles collection in the new manager, and optimizing performance by caching resource pack states to avoid redundant disk I/O during list refreshes.

ToobLac and others added 5 commits May 18, 2026 22:50
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants