A simple patch for Nadeo's TrackMania Forever games to allow for running the game at arbitrary resolutions in windowed mode, alongside borderless windowed.
Tested to work with both TrackMania United Forever and TrackMania Nations Forever.
- Pull down MinHook as a submodule
- Compile the repository with your favourite flavour of Visual Studio
- Place the new
d3d9.dll
file next to your TmForever.exe
Create a new INI file next to TmForever.exe named TmWindow.ini
.
Inside that file, the syntax looks like this:
[Window]
Title=some custom window title here
Width=1280 # window width
Height=720 # window height
FullscreenMode=0 # Fullscreen mode - 0 windowed, 1 exclusive, 2 borderless
MIT