0 of 0

File information

Last updated

Original upload

Created by

gir489 and MartinJK

Uploaded by

gir489

Virus scan

Safe to use

Tags for this mod

About this mod

This adds an auto injecting DXGI dll to Mafia 2 to inject Lua files.

Permissions and credits
Changelogs
This mod utilizes a feature in Windows, that Windows will always load core libraries from the local folder first before system32. This way, we can intercept a binary (I've chosen DXGI) to ride the PEB list superhighway into the program without having to invoke LoadLibraryA via a loader like previously required. So, simply starting Mafia II will auto load the Script Hook for you. No more ALT+TABing required.

I noticed that for some reason when I first get into the game, the scripts "execute" but the keybinds can't find the function. It takes a few minutes for something the game is doing to finish loading its Lua and then finally callback the Script Hook proper and then the scripts work. IDK, it's weird...