Skip to content

[Feature] 支持 CoreMod 读取 - #6625

Draft
ToobLac wants to merge 13 commits into
HMCL-dev:mainfrom
ToobLac:coremod
Draft

[Feature] 支持 CoreMod 读取#6625
ToobLac wants to merge 13 commits into
HMCL-dev:mainfrom
ToobLac:coremod

Conversation

@ToobLac

@ToobLac ToobLac commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Closes #6623 Fixes #5555

顺便修复了 1.13.2 Forge REI 元数据加载不出来的问题

@github-actions github-actions Bot added the 100+ label Aug 7, 2026
@ToobLac
ToobLac marked this pull request as ready for review August 7, 2026 11:05
@ToobLac

ToobLac commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

我们需要尽可能多的 coremod 来进行测试

@ToobLac
ToobLac marked this pull request as draft August 7, 2026 14:51
@ToobLac
ToobLac marked this pull request as ready for review August 9, 2026 13:57
Comment thread HMCLCore/src/main/java/org/jackhuang/hmcl/addon/meta/CoreMod.java Outdated
@ToobLac ToobLac closed this Aug 14, 2026
@ToobLac ToobLac reopened this Aug 14, 2026
@ToobLac
ToobLac marked this pull request as draft August 14, 2026 04:30
@ToobLac
ToobLac marked this pull request as ready for review August 18, 2026 14:04
@Glavo

Glavo commented Aug 19, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 49fce0ba08

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HMCLCore/src/main/java/org/jackhuang/hmcl/addon/meta/CoreMods.java Outdated
tree.extractTo(embeddedModFile, tempFile);
try (ZipFileTree embeddedTree = CompressingUtils.openZipTree(tempFile)) {
return fromFile(modManager, modFile, embeddedTree, modLoaderType);
return fromFile(modManager, modFile, embeddedTree, modLoaderType, coreMods);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Scan embedded mod archives for CoreMod markers

When metadata is obtained through the embedded-mod fallback, coreMods was calculated only from the outer archive and is passed unchanged while the actual mod is read from embeddedTree. Consequently, an embedded mod containing coremods.json, an ITransformationService, or another supported marker is loaded successfully but reported as a non-CoreMod; combine markers detected from embeddedTree with those from the outer archive before constructing the LocalModFile.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

真实性有待确认。主要是没有测试样例,不知道模组加载器这样能不能读取到。我个人倾向于认为不能

@ToobLac
ToobLac marked this pull request as draft August 19, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 支持多加载器模组 [Bug] I18nUpdateMod会被视为Fabric模组而提示与(Neo)Forge加载器不匹配

4 participants