It is very rare that a commercial game releases its source code to the public, it is even rarer for that to be a console game, but there have been a few exciting cases in recent history which we will explore in this post.
To be considered for this list the game must have at least a quarter of the source code used to make the game/prototype released.
This list does not contain fan decompilations of retail games, for those we have a separate page:
Decompiled Retail Console Games
For the list of decompiled games check out this post.
Nintendo systems have by far the largest selection of official source code to choose from, some of it has been leaked and others have been released officially by the developers.
Mr Do! Source Code (Game Boy)
For more information on the Mr Do! Game Boy source code check out this post.
Reversing Pokemon Red and Blue (Game Boy)
For more information on the Pokemon Red and Blue Game Boy source code check out this post.
The source code to Pokemon Silver and Gold were released as part of the Nintendo Leaks in early 2020.
The GBA was the first Nintendo portable to have most of its games written in the C language as compilers had finally become good enough to develop full retail games with.
Games for Nintendo’s first console was almost exclusivly written in 6502 assembly language as anything higher level would simply be too slow due to early compilers producing less efficient code than human programmers.
Home Alone 2 NES Source Code
For more information on the Home Alone Famicom source code check out this post.
Most of these games have been leaked due to part 2 of the infamous Gigaleak.
Gigaleak 2 Electric Boogaloo - N64 Source Code Leak
For more information check out this post.
Games with Source Code Leaked:
Capcom Leaks
For more information on the Biohazard Umbrella chronicles source code check out this post.
Finding source code for SEGA systems is many times harder than finding code from their rival Nintendo.
Source Code Archive : The Chris Shrigley Page
Source Code Archive : The Chris Shrigley Page
Source Code Archive : The Chris Shrigley Page
Retail Sega Saturn source code is almost as rare as Hen’s teeth, due to this fact we have included Three Dirty Dwarves but cannot yet confirm if it actually contains complete source code or not.
Chicken Run Source Code
For more information on the Dreamcast Chicken Run source code check out this post.
California Watersports (PS1) Source Code
The PlayStation source code was released in 2020 with the permission of developer Mark Theyer.
Silicon Dreams studio's Chill Source Code
An earlier build snapshot with sources found in the retail CD contents.
Ultimate Mortal Kombat 3
Re Volt Xbox And PC Source Code (Acclaim) C/C++ Game source code. Including unreleased Xbox port.
The source code for the misadventures of Tron Bonne was released as part of the November 2020 Capcom leaks.
Capcom Leaks
For more information on the Tron Bonne source code check out this post.
Blizzard's Warcraft II: The Dark Saga - PS1 Source Code
Leaked source code for 'Warcraft II: The Dark Saga' for the Sony PlayStation.
On the 27th March 2022 March42 and Forest of Illusion released the official source code to one of the most popular original Playstation games, Wipeout!
This section lists all the known leaked source code for retail Playstation 2 games. This does not include Homebrew or decompiled games as they have their own pages.
The source code to Devil May Cry 2 was released as part of the Capcom Leaks in November 2020.
Capcom Leaks
For more information on the Devil May Cry 2 source code check out this post.
This section has all the consoles Microsoft made which are considered retro enough to include here. We currently do not list anything after the original Xbox but this may change in the future when the 360 can safely be classified as a retro system.
The original Xbox was a joy to program for, especially for PC developers who were familiar with the Direct X API. However very few xbox games have ever has their source code leaked.
Sea Dogs / Pirates of the Caribbean
A git-based fork of the officially released Storm Engine source code.