Cloned Games

Super Mario Galaxy Decompilation

DecompilationHalted

Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported.

Super Mario Galaxy (original game, not this project)Original game image
Image of the original game, Super Mario Galaxy. This project has no screenshots of its own yet.
Links, repository & details

About

An in-development matching decompilation of Super Mario Galaxy, in which all code compiles 1:1 to the original game when using the original compiler at its highest optimization level. Compiled code is placed back into the original executable and the result is hashed to check that it matches the original.

How it differs from the original

The original game was written and compiled as C++03, but this project uses several modern C++ features such as nullptr and override for readability, and defines them out when compiling for C++03. Original access modifiers and trivial encapsulations were lost to the optimizer, so the author reconstructed them and added debug assertions.

Additional notes

Documentation
Every fully understood piece of reverse engineered data is documented in a consistent doxygen style.
Goal
Once all code is decompiled, the setup will build a new executable from scratch without sampling any of the original.

FAQ

What is Super Mario Galaxy Decompilation?
Super Mario Galaxy Decompilation is an open-source decompilation of Super Mario Galaxy. Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported.
Share: