How zeffuro/x-files-pc-enhancement-patch works
The X-Files PC Enhancement Patch installs and launches supported game editions, then augments gameplay on modern Windows. The main user journey is setup from game media to an installed game, followed by launch into the patched game; players can configure display and controller behavior, use enhanced saves and subtitles, and request local diagnostic reports. The tree and README establish the product’s major subsystems; sampled excerpts confirm launcher setup of media/save environment and DLL hook installation, but not all runtime call wiring.
Main entry points: application.cpp Game launcher · dllmain.cpp Compatibility hooks · dialog.cpp Setup workflow · controller.cpp Controller support
Components 21
Setup and launch
- Setup workflow
src/setup/dialog.cpp - Media discovery
src/setup/media.cpp - Game staging
src/launcher/staging.cpp - Game launcher
src/launcher/application.cpp
Game compatibility
- Patch runtime
src/runtime.cpp - Compatibility hooks
src/dllmain.cpp - Settings storage
src/preferences/store.cpp
Media and display
- Movie decoding
src/media/movie.cpp - Playback pipeline
src/playback/movie.cpp - DVD playback
src/dvd/player.cpp - Windowed display
src/graphics.cpp
Gameplay enhancements
- Controller support
src/enhancements/controller.cpp - Game interactions
src/enhancements/dialogue.cpp - Subtitle options
src/enhancements/ui/subtitle_dialog.cpp
Saves and diagnostics
- Save browser
src/saves/browser.cpp - Save storage
src/saves/storage.cpp - Diagnostic reports
src/diagnostics/report.cpp
Other components
- Player
- X-Files game
- XInput device
- Windows platform
Connections 23
- Player → Setup workflow: selects game media
- Setup workflow → Media discovery: discovers media
- Setup workflow → Game staging: installs game
- Player → Game launcher: starts game
- Game launcher → X-Files game: launches
- Game launcher → Save storage: prepares saves
- Game launcher → Patch runtime: configures runtime
- X-Files game → Compatibility hooks: loads patch hooks
- Compatibility hooks → Settings storage: installs preference hooks
- Compatibility hooks → Movie decoding: installs media hooks
- Compatibility hooks → Save browser: installs save hooks
- Movie decoding → Playback pipeline: provides decoded media
- DVD playback → Movie decoding: uses movie decoding
- Player → Controller support: plays with controller
- Controller support → XInput device: polls input
- Controller support → Game interactions: routes game input
- Player → Subtitle options: configures subtitles
- Player → Save browser: manages saves
- Save browser → Save storage: reads and writes
- Player → Diagnostic reports: requests report
- Game launcher → Diagnostic reports: records launch diagnostics
- Patch runtime → Windowed display: supports display modes
- Windows platform → Patch runtime: hosts runtime