Skip to content

nothazel/dmc4se-patcher

Repository files navigation

DMC4SE Auto-Patcher

Automatically patches Devil May Cry 4: Special Edition to run at your monitor's native resolution.

No hex editing, no manual config changes just run the exe.

What it does

  1. Detects your Steam install path from the registry
  2. Reads your primary monitor's native resolution
  3. Backs up DevilMayCry4SpecialEdition.exe before touching it
  4. Patches the correct width bytes into the exe at the known offset
  5. Writes the matching Resolution= line to config.ini
  6. Verifies the patch was applied correctly

Supported resolutions

Width Hex value patched
1280 00 05 00 00
1360 50 05 00 00
1440 A0 05 00 00
1600 40 06 00 00
1920 80 07 00 00
2560 00 0A 00 00
3840 00 0F 00 00

Minimum supported width is 1280px.

Download

Grab the latest DMC4SE-Patcher.exe from the Releases page.

Build from source

Requires Python 3.8+ and pip.

build.bat

The output is dist\DMC4SE-Patcher.exe.

Technical notes

The patcher always deploys a known-good depot exe before patching, so the target offset is always 0x6790E7. It checks that the value there is the expected default (80 02 00 00) before writing, and reports an error if not.

A .bak backup is always created (or you'll be asked before overwriting an existing one).

Restoring the original exe

If something goes wrong, rename DevilMayCry4SpecialEdition.exe.bak back to DevilMayCry4SpecialEdition.exe in the game folder. Or use Steam: Library > DMC4SE > Properties > Local Files > Verify integrity of game files.

Credit

All the hard work was done by LiandriS, who figured out the offsets and documented the fix: https://steamcommunity.com/app/329050/discussions/0/1291816880499283959/

Steam profile: https://steamcommunity.com/id/LiandriS

About

Devil May Cry 4 screen resolution overflow crash fix

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors