About This File
DLL hook that can prevent RE Revelations from crashing when config.ini contains a resolution that isn't normally supported (eg. 3840x2160), the DLL will patch the game in memory so that the config.ini resolution can be used fine instead.
To make use of it just extract xinput1_3.dll next to the games rerev.exe file, then edit the games config.ini (AppData\Local\CAPCOM\RESIDENT EVIL REVELATIONS\config.ini), changing the Resolution line under the [DISPLAY] section to the desired resolution.
After that, the game should start up in the chosen resolution, and will now no longer crash during the first load screen.
Been playing with 3840x2160 & 5120x2880 via nVidia DSR and haven't noticed any issues with it so far. The DLL isn't hardcoded for any specific game version so hopefully earlier versions will work with it too, but I've only tried with the latest Steam release. If anyone runs into any issues feel free to let me know.
(DLL was built with VS2022, so you might need to install latest vcredist.x86.exe for it to work, you can find that at https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170)
(note that the custom resolution has to be exposed from your GPU/monitor for game to work with it, eg. via nVidia DSR or NCP custom resolutions, otherwise resolution will be set to default 1920x1080)
Source code is included for anyone interested in it (licensed under GPL3)