Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CMR2Decomp/CMR2Decomp

Repository files navigation

CMR2Decomp Project

This is a very feable attempt at Colin Mcrae Rally 2.0 (PC) decompilation with the help of reccmp from the Lego Island isledecomp folks.

This is being used to verify accuracy of functions/globals so far. A lot more is known in Ghidra, it's just not been put into this actual source project yet.

Local Development

The solution file provided is for use with Visual Studio 2022 and the latest x86 targeting that it comes with. When writing code, keep in mind it needs to be compilable with MSVC6.0 so be careful with what #includes you use etc.

If you really want to compile with MSVC locally then as mentioned below you can use the portable version of MSVC6.0.

When running this from the root directory of this repository via cmd.exe, the compiler flags we are using are as follows:

call "<msvc600_dir>/VC98/bin/cl.exe" CMR2Decomp/*.cpp /Fe"build/CMR2.exe" /O2 /DNDEBUG /Zi /Gz /MD /link user32.lib gdi32.lib /DEBUG /PDB:"build\CMR2.pdb" /SUBSYSTEM:WINDOWS

GitHub Workflows

However, when pushing to this repository it is being compiled with the help of a portable version of MSVC6.0. Which we understand is probably the closest compiler we'll get to what was originally used. As you can see from the reccmp output the accuracy is much better than when it was compiled with modern day compilers.