A friend told me about the missing windowed mode for Call of Duty 2 and that he tries to fix it with reverse engineering.
It was a good reason to check out what we can do. I'm always interested in finding solutions... even for a creepy old game...
It's very simple for Windows 10. I was really wondering but it's enough to create a form application and change the parent of the game. Then you only have to handle the resize functions for great flexibility.
The fix is similiar for older Windows versions. But before we can do that we have to change 2 bytes in 'gfx_d3d_mp_x86_s.dll' to force windowed mode.
To prevent md5 mismatch issues in PunkBuster it creates copies for 'CoD2MP_s.exe' and 'gfx_d3d_mp_x86_s.dll' for patching. The copied 'CoD2MP_s.exe' gets a patch to load the patched copy of 'gfx_d3d_mp_x86_s.dll' instead of the original.
- Microsoft Windows 7 or higher
- Microsoft .NET Framework Version 4.7+
- Call of Duty 2
- Microsoft Windows 10 (64-bit recommended)
- Microsoft Windows 7, 8 and 8.1 should work well, but is no longer tested
- Microsoft Visual Studio 2019 + .NET Framework 4.7.2 SDK
- Si13n7 Dev.™ CSharp Library Binaries
- Star this Project ⭐ and show me that this project interests you 🤗
- Open an Issue ☕ to give me your feedback and tell me your ideas and wishes for the future 😎
- Open a Ticket 📫 if you don't have a GitHub account, you can contact me directly on my website 😉
- Donate by PayPal 💸 to buy me some cookies 🍪