feat(local-integration): 新增模块本地 HTTP 总线#73
Open
liruilong wants to merge 3 commits into
Open
Conversation
e7c6987 to
e6a2321
Compare
e6a2321 to
c784a71
Compare
Owner
|
这是啥? |
Owner
|
你可能得更新一下了 |
Author
|
我想先确认一下现在该项目的方向。 从这波重构看,项目主轴好像已经从单纯的
这个方向本身我能理解,也挺有价值。 如果是这样,我也想确认另一个问题: 因为我们这边在做的扩展主要不是音源流媒体 module,而是 Chill 游戏侧能力模块,例如:
详细见: 这些能力需要运行在 Unity / BepInEx 游戏进程里,需要 ChillPatcher 自己保留一个 module 加载入口。它们不太适合放进 所以我想先对齐一下方向:
如果主轴已经确定要转向 OmniMixPlayer,我这边也可以按这个方向调整预期;但如果 ChillPatcher 还会继续作为独立游戏侧 Mod 维护,那我建议我们先把 ChillPatcher 的模块边界保留下来,再处理这个 PR 的冲突。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
ChillPatcher.Module.LocalIntegration模块,提供可配置的本地 HTTP 总线,用于可信本地工具与第三方模块集成。ChillPatcher.SDK中新增ILocalIntegrationHandler,模块程序集可以通过实现该接口注册自己的本地路由。SaveProfileService中的字符串匹配改为 net472 可用的IndexOf(..., StringComparison),确保该分支可独立构建。验证
dotnet build ChillPatcher.Module.LocalIntegration\ChillPatcher.Module.LocalIntegration.csproj -c Debug -p:SteamLibraryRoot=D:\Steam说明
127.0.0.1:18792,除非用户显式修改 Host,否则不会开放到局域网。Token后,请求需要使用Authorization: Bearer <token>或X-ChillPatcher-Token。ILocalIntegrationHandler后自行注册,避免主仓绑定特定本地工作流。