Add runtime MainMenu injection and docs

Introduce a C++ runtime injection that adds a Multiplayer row to the Fallout 4 main menu instead of patching MainMenu.swf. Adds F4TMainMenuInject.h/cpp implementing injection, ITEM_PRESS handling, accept/button hooks, resync tasks and logging; integrates installation by calling MainMenuInject::Install() from PrismaUI init. Update PrismaUI to use the new helper and remove a duplicate IsMainMenuOnMainPanel implementation. Documentation updated to deprecate FFDec SWF patching (new docs/MainMenu_Injection.md, note in FFDEC guide, and setup.md) and restore-vanilla-mainmenu.ps1 messaging updated to instruct using the runtime injection.
This commit is contained in:
2026-06-09 14:52:27 +12:00
parent 1f39c3a929
commit d4d3268b12
7 changed files with 869 additions and 22 deletions
+2 -1
View File
@@ -27,4 +27,5 @@ Write-Host " $repoSwf"
Write-Host " $deploySwf"
Write-Host ""
Write-Host "Settings -> Gameplay/Display/Audio should work again."
Write-Host "Re-add the Multiplayer button with surgical FFDec edits only (see Interface/exported/PATCH_MainMenu_Multiplayer.md)."
Write-Host "Do not deploy a patched MainMenu.swf. Multiplayer is injected at runtime by CommonwealthOnline.dll."
Write-Host "See docs/MainMenu_Injection.md for setup and testing."