feat: 支持 2026.10.06 协议与强制注入脚本,移除 UI 中的 M0 诊断折叠卡片
This commit is contained in:
@@ -179,7 +179,6 @@ public sealed class Plugin : IDalamudPlugin
|
||||
ImGui.TextWrapped($"IC Rebuild 0.1.16 · {region} · API 15 · 客户端 {gameVersion}");
|
||||
if(ImGui.Button("关闭全部模块")) { modules.DisableAll(); config.Requested.Clear(); Try(Save); }
|
||||
ImGui.TextWrapped(notice);
|
||||
DrawAdaptation();
|
||||
foreach(var group in Features.All.GroupBy(x=>x.Group))
|
||||
{
|
||||
if(!ImGui.CollapsingHeader(group.Key)) continue;
|
||||
@@ -233,37 +232,6 @@ public sealed class Plugin : IDalamudPlugin
|
||||
}
|
||||
ImGui.End();
|
||||
}
|
||||
private void DrawAdaptation()
|
||||
{
|
||||
if(!ImGui.CollapsingHeader("版本适配与诊断 (M0)")) return;
|
||||
if(ImGui.Button("重新评估适配清单")) Try(()=>
|
||||
{
|
||||
adaptationReport=game.EvaluateAdaptation(modules);
|
||||
AdaptationManifest.ApplyGate(modules,adaptationReport);
|
||||
});
|
||||
if(adaptationReport is not {} report)
|
||||
{
|
||||
ImGui.TextWrapped("尚未生成适配诊断报告。");
|
||||
return;
|
||||
}
|
||||
ImGui.TextWrapped($"客户端 {report.ClientVersion}(已审计基线 {report.AuditedVersion})· 可用模块 {report.ReadyCount} · 受阻模块 {report.BlockedCount}");
|
||||
ImGui.TextWrapped(report.ActiveSendSummary);
|
||||
foreach(var entry in report.Entries)
|
||||
{
|
||||
var tag=entry.Issue switch
|
||||
{
|
||||
AdaptationIssue.None=>"就绪",
|
||||
AdaptationIssue.MissingImplementation=>"未实现",
|
||||
AdaptationIssue.VersionMismatch=>"版本不匹配",
|
||||
AdaptationIssue.OffsetMismatch=>"SDK 偏移变化",
|
||||
AdaptationIssue.SignatureMissing=>"签名缺失",
|
||||
AdaptationIssue.MultipleMatches=>"签名不唯一",
|
||||
AdaptationIssue.RuntimeFault=>"运行异常",
|
||||
_=>"受限"
|
||||
};
|
||||
ImGui.TextWrapped($"{entry.FeatureId} · {entry.FeatureName}:{tag} · {entry.Summary}");
|
||||
}
|
||||
}
|
||||
private void DrawStatusBlock()
|
||||
{
|
||||
ImGui.TextWrapped($"已选 {config.BlockedStatuses.Count} 项 · 本次启用拦截 {statusBlock.Blocked} 次 · 最近状态 ID {statusBlock.LastStatus}");
|
||||
|
||||
Reference in New Issue
Block a user