Skip to content

解耦修改器核心、存檔與兵種預設流程#7

Closed
nojackno2-ctrl wants to merge 1 commit into
主要開發from
codex/decouple-core-and-file-workflows
Closed

解耦修改器核心、存檔與兵種預設流程#7
nojackno2-ctrl wants to merge 1 commit into
主要開發from
codex/decouple-core-and-file-workflows

Conversation

@nojackno2-ctrl

Copy link
Copy Markdown
Owner

變更內容

  • 以 typed FeatureKey / FeatureRegistry 統一功能識別與預設值,將 EXE、INI、objdef、team.dat、BCI 與安裝狀態偵測拆成目標專責 detector。
  • 將 patch 檔案組裝、交易執行、分類還原與備份載入、驗證、自動修復拆成獨立服務。
  • 將存檔 ZIP 建立、掃描、預覽、交易式還原與刪除移出 WinForms,並抽出兵種 preset 的 4/6/9 欄相容 codec 與單位數值服務。
  • 統一 code page 1251 reader 使用 PatchText.GameEncoding,移除測試順序依賴。
  • 補齊 detector、備份、交易、存檔與 preset 的回歸測試,並更新 AI_HANDOFF.md

原因與影響

原本核心協調器與 WinForms 同時承擔 patch 政策、檔案 I/O、rollback 與格式解析,造成責任集中、重複邏輯和難以隔離測試。這次重構保留既有功能行為,讓後續新增功能能依 target/service 擴充,並讓存檔還原與 preset 格式可用暫存 fixture 驗證。

驗證

  • dotnet test(隔離 artifacts path):186/186 通過
  • isolated Release build:0 warnings、0 errors
  • git diff --check:clean
  • BackupInfrastructureTests isolated focused run:5/5 通過

註:先前提升權限的 UI smoke PID 35644 鎖住一般 Release 輸出,因此本輪使用隔離 artifacts path 驗證;不是程式碼失敗。

@nojackno2-ctrl nojackno2-ctrl deleted the codex/decouple-core-and-file-workflows branch July 15, 2026 08:35
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.

1 participant