How s1thk3nny/bf2gameext works
BF2GameExt is a runtime DLL extension for Star Wars Battlefront II (2005). The player launches the game; a proxy can chain-load alongside other dinput8 proxies, and the extension identifies the executable build before applying in-memory patches and installing game hooks. Those hooks expose modding capabilities and fixes across Lua, ODF, HUD, loading screens, controllers, and engine systems. The README documents these capabilities, while sampled entry-point and build-resolution sources support the initialization structure. Many individual feature implementations were not sampled, so subsystem detail and links are limited to documented or indexed evidence.
Main entry points: core/dllmain.cpp DLL entry · src/dllmain.cpp Proxy loader · game_build.hpp Build dispatch · apply_patches.cpp Executable patching
Components 21
Runtime startup
- Proxy loader
DInput8Proxy/src/dllmain.cpp - DLL entry
PatcherDLL/src/core/dllmain.cpp - Build dispatch
PatcherDLL/src/core/game_build.hpp - Address resolution
PatcherDLL/src/core/resolve.hpp - Executable patching
PatcherDLL/src/core/apply_patches.cpp - Detours hooks
Detours/src/detours.cpp
Modding interfaces
- Lua API and hooks
PatcherDLL/src/lua - ODF extensions
PatcherDLL/src/entity/odf_gameext_props.cpp - HUD events and fixes
PatcherDLL/src/render - Loading screens
PatcherDLL/src/loading_screen
Gameplay systems
- Entity behavior
PatcherDLL/src/entity - Weapon systems
PatcherDLL/src/weapon - Controller support
PatcherDLL/src/controller/controller_support.cpp - Controller rumble
PatcherDLL/src/controller/controller_rumble.cpp
Engine extensions
- Shell and maps
PatcherDLL/src/shell - Rendering fixes
PatcherDLL/src/render - Engine limits
PatcherDLL/src/util - Sound reliability
PatcherDLL/src/util/snd_engine_open_fix.cpp
Player support
- Debug commands
PatcherDLL/src/debug_commands - INI configuration
PatcherDLL/src/util/ini_config.hpp
Other components
- Player launch
Connections 22
- Player launch → Proxy loader: launches
- Proxy loader → DLL entry: chain-loads
- DLL entry → Build dispatch: selects build
PatcherDLL/src/core/dllmain.cpp - DLL entry → Executable patching: applies patches
PatcherDLL/src/core/dllmain.cpp - DLL entry → Lua API and hooks: initializes hooks
PatcherDLL/src/core/dllmain.cpp - Build dispatch → Address resolution: selects addresses
PatcherDLL/src/core/game_build.hpp - Executable patching → Address resolution: resolves sites
- DLL entry → Controller support: initializes
PatcherDLL/src/core/dllmain.cpp - DLL entry → Controller rumble: initializes
PatcherDLL/src/core/dllmain.cpp - Controller support → Lua API and hooks: uses hooks
PatcherDLL/src/controller/controller_support.cpp - Controller rumble → Detours hooks: installs hooks
PatcherDLL/src/controller/controller_rumble.cpp - DLL entry → Sound reliability: installs fix
PatcherDLL/src/core/dllmain.cpp - DLL entry → Entity behavior: installs fixes
PatcherDLL/src/core/dllmain.cpp - DLL entry → Weapon systems: installs fixes
PatcherDLL/src/core/dllmain.cpp - DLL entry → Rendering fixes: installs fixes
PatcherDLL/src/core/dllmain.cpp - DLL entry → Shell and maps: installs fixes
PatcherDLL/src/core/dllmain.cpp - DLL entry → Loading screens: supports
- DLL entry → ODF extensions: adds properties
- DLL entry → HUD events and fixes: adds events
- DLL entry → Debug commands: adds commands
- DLL entry → Engine limits: extends limits
PatcherDLL/src/core/dllmain.cpp - DLL entry → INI configuration: reads settings