Skip to content

About

A multi-functional proxy DLL for Mass Effect Legendary Edition. Unlocks console, loads native plugins, provides an option for bypassing the launcher.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

LEBinkProxy

A small proxy DLL which enables dev. console in Mass Effect 1, 2 and 3 (Legendary Edition). Originally written by d00telemental. Compiled versions of this dll are distributed through ME3Tweaks Mod Manager.

Additionally provides the following features:

  • Minidumps on application crash (with -enableminidumps command line argument)
  • Autoboot to a specific game when in the launcher using -game 1/2/3 and -autoterminate
  • Command line argument pass through to the game from the launcher

Usage

ME3Tweaks Mod Manager will automatically install this dll on any mod install, or when installed via the tools menu for Bink bypass.

Alternatively, you can install it manually:

  1. In your game binary directory (Game\ME?\Binaries\Win64), rename bink2w64.dll into bink2w64_original.dll.
  2. Copy the built proxy DLL (Release\bink2w64.dll) into the same folder.
  3. Launch the game.
  4. Use ~ and Tab to open small and big console viewports. If your console keybindings are different, use them.

If you built the proxy from source, the proxy DLL would be found in the default Visual Studio build path. If you downloaded a built bundle, the proxy DLL would be found at Release\bink2w64.dll.

Should this proxy not work, make sure you are using the latest version and then check the log file at Game\ME?\Binaries\Win64\bink2w64_proxy.log. You can get support for LEBinkProxy at ME3Tweaks Discord.

For developers

In the original Mass Effect trilogy, certain mods required a DLL bypass to work. This led many developers to distribute a Bink proxy with their mods. Even after almost the entire scene moved to use ME3Tweaks Mod Manager (M3), which has a built-in Bink proxy installer, some developers continue(d) to ship their own DLLs, which resulted in many different versions of the tool being spread all over the Internet.

SPI v4 console broker

SPI v4 exposes a process-wide console broker for ASIs. A v4 consumer acquires a lease, opens its own CONOUT$ handle, and releases only that lease during shutdown. The proxy owns the sticky console for the lifetime of the process and does not call FreeConsole when an individual ASI detaches. SPI v3 consumers remain loadable for compatibility, but legacy non-broker ASIs can still call FreeConsole or otherwise manipulate the process console and disrupt brokered output.

SPI v4 service registry

ASIs can publish a table of functions for other ASIs with RegisterService and look one up with QueryService. Services are identified by name (by convention Owner.Feature, such as LMP.Lobby) and an integer version, so a consumer does not need to know which ASI file provides a service, and another ASI can provide the same service instead.

  • A provider registers at the end of its attach, once the table is usable. The table must stay valid until process exit; there is no unregistration. Its functions should fail gracefully once the provider has detached.
  • New functions are only ever appended to a table, with a version bump. Changing an existing function requires a new service name.
  • Attach order between ASIs is not guaranteed, so a consumer queries lazily and treats FailureNotFound as "not yet". FailureVersionTooOld still reports the registered version, for logging.
  • Registering a name twice fails with FailureDuplicacy.

ExamplePlugin shows both sides.

The proxy's explicit shutdown entry point is LEBinkProxyShutdown. Hosts that support unloading the proxy should call it before FreeLibrary; process termination uses the loader-safe fast path.

The proxy leaves DllMain without performing ASI loading or SPI callbacks. A readiness event completes after the background bootstrap has initialized GLEBinkProxy, created SPI, and dispatched preload callbacks. Code that needs those proxy services can call the optional LEBinkProxyEnsureReady export; the Bink exports remain the original linker forwarders so no guessed Bink ABI or call-order dependency is introduced. Post-load async SPI callbacks remain non-blocking and are joined only by the explicit shutdown path.

Screenshot (LE1)

Example of the proxy at work

Credits

To inject necessary functionality into the game, LEBinkProxy uses slightly modified MinHook library by Tsuda Kageyu. The license and a statement of changes for it can be found in the proxy's source files, which are distributed to the end user.

About

A multi-functional proxy DLL for Mass Effect Legendary Edition. Unlocks console, loads native plugins, provides an option for bypassing the launcher.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages