Video-game preservation through decompilation reconstructs readable, buildable source code by reverse engineering a released game’s executable and checking the replacement against the original. It can make a game’s implementation easier to study, maintain, and adapt when its original hardware or development tools are obsolete. It does not, by itself, preserve every asset, grant distribution rights, or replace an original build, playable copy, or emulation environment.
What decompilation preserves—and what it does not
A shipped executable contains instructions a computer can run, not the original developers’ source files and explanations. Decompilation projects work backward from that executable: they infer how its code and data are organized, then write a new source tree that reproduces the original program’s behavior or, in a matching project, its exact binary output.
The reconstructed code is a new, human-readable account of the program, not a recovered copy of the original source. It can document implementation details that were never published, but it may not restore the original comments, names, design notes, or development history. Nor does a code repository necessarily include the original art, music, fonts, trademarks, ROM image, or content delivered by online servers. Those materials can have separate rights and distribution restrictions.
How a matching decompilation works
- Choose a specific target. Identify the game executable and its platform, region, and release version. A project’s result applies to the target it analyzes; it should not be assumed to cover every edition.
- Analyze the executable. Researchers use disassembly and reverse engineering to interpret machine instructions, identify functions and data, and infer how the program was built. Project environments may include tools such as Ghidra; n64.dev documents reverse-engineering environments for particular N64 projects.
- Write replacement source. Contributors express the inferred behavior in source code, often C or C++, and refine the code as they learn more about the original program.
- Compile and compare. They build the replacement and compare its output with the target executable, then investigate differences and repeat. Decompedia defines matching decompilation as “the process of writing source code (typically C or C++) that compiles to the same exact binary as the original.”
- Document the result. Build instructions, toolchain details, tests, and the target’s identity make the work easier to inspect and reproduce. A matching result is meaningful only in relation to a specified target and verification method.
This is not a button that converts machine code back into the developers’ original files. The executable does not reliably reveal the original source’s structure or intent, so people have to infer and reconstruct them. Community groups such as pret describe their work as reverse engineering games to understand how their engines were implemented.
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
What “100% matching” means
In a matching decompilation, the goal is for the newly compiled program to produce the same exact binary as the chosen original executable. That is a strong verification target for the code-and-build reconstruction. It does not prove that the reconstructed source is identical to the original source, that all editions or platforms match, or that a repository contains all the files needed to play the game. It also does not settle whether the code or other materials can legally be redistributed.
Decompilation is not emulation
| Approach | What it does | What it contributes to preservation |
|---|---|---|
| Decompilation | Reconstructs readable source from a shipped executable through reverse engineering; matching projects compare a new build with the original binary. | Can expose implementation details and make code easier to inspect, maintain, or adapt. |
| Emulation | Recreates the behavior of a hardware platform in software so compatible original software can run in that environment. | Can provide a way to run a game when original hardware is unavailable; it does not reconstruct the game’s source code. |
| Preserving original source and build materials | Retains the developers’ source files and, where available, the materials and tools needed to build or document the release. | Preserves original development artifacts rather than a reverse-engineered substitute. The Library of Congress identifies uncompiled source code as preferred software and video-game preservation content and also prefers a gold master build. |
These methods can complement one another. A decompiled project may improve understanding of a game while an emulator or original hardware provides a way to run it. Neither substitutes for keeping the original release, its metadata, and the context needed to interpret it.
Why preservationists may use decompilation
- Recover technical knowledge. Readable code can make undocumented behavior and engine design available for study when development notes or institutional knowledge are missing.
- Support maintenance and adaptation. A reconstructed source tree can make it more practical to investigate toolchain changes, ports, or accessibility work. Those are possible uses, not guaranteed outcomes of completing a decompilation.
- Create an auditable research artifact. Contributors can review code, build scripts, tests, and comparisons with the target rather than treating the executable as an opaque object.
- Document specific releases. A carefully identified target and its build process can preserve knowledge about one edition, platform, or version even if other releases remain unexamined.
These are practical benefits of reconstructing and documenting software; the existence of a decompilation alone does not prove that a game is playable, complete, or preserved for the long term.
What libraries and archives should preserve
Decompilation is one layer of a preservation plan, not a replacement for collecting the original materials. Library of Congress guidance prefers uncompiled source code and a gold master build for software and video games. It also calls for descriptive and production information that helps identify and interpret the work.
- Identity and provenance: title, creator, creation date, publication place, publisher or distributor, identifiers, and production metadata.
- Software artifacts: original source code where available, a gold master build, and a playable copy.
- Operating context: the proprietary platform or a virtual or emulated version when a console game depends on hardware that is no longer readily available.
- Rights and access materials: rights information and, where DRM or encryption is involved, appropriate rights clearance and usable keys.
- Reverse-engineered materials: a decompilation’s target identification, source, build instructions, toolchain documentation, and verification method, when those materials are available and can be retained lawfully.
These materials answer different questions: what was released, how it was built, what it needs to run, and what future custodians are permitted to do with it. A decompilation may help with technical understanding, but it cannot fill every gap in provenance, rights, or access.
How to assess a decompilation project
A project label such as “complete” is not enough to establish what has actually been preserved. Compare projects on the evidence they publish:
Rank #4
- Target and verification: Which platform, region, and version does the project cover? Does it aim for matching output, and how does it verify the result?
- Scope: Is the repository code-only, or does it include assets? Are original assets omitted and expected from users separately?
- Reproducibility: Are build instructions, compiler or toolchain details, and tests documented well enough to explain how the result is produced?
- Rights and provenance: Does the project explain its license and the provenance or status of assets it distributes? A code license does not automatically settle rights in game assets.
- Coverage: Does it address one release or multiple platform, regional, or version variants?
- Purpose: Is the work preservation research, a source port, a modding base, or a consumer release? Those outputs have different goals and should not be treated as interchangeable.
Examples include pret, a community documenting reverse engineering across Game Boy and Game Boy Color projects, and the N64 projects catalogued by n64.dev. These examples illustrate project types; their scope and status should be assessed from each project’s own documentation rather than generalized to all games.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Can a decompiled game be legally released?
There is no blanket answer. Reverse engineering, circumventing a technical measure, copying code or assets, and distributing a game are separate acts. A project may publish reconstructed code while excluding copyrighted assets and requiring users to supply their own lawfully obtained copies, but that choice does not by itself resolve every legal issue. Repository licenses, asset provenance, the intended audience, and the material being distributed all matter. This is general information, not legal advice.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Best Value
- ALWAYS READY TO PLAY - Open the video book cover and your memories come to life – instantly. Perfect for wedding videos and slideshows, event videos, encouragement videos, congratulations, sympathy or thank you wishes videos.
- PREMIUM QUALITY & INNOVATIVE - High-end 7" HD IPS screen and built-in speakers deliver stunning video and audio clarity, providing an immersive automatic playback experience upon opening the video book.
- HIGH CAPACITY & ENDURANCE - Stores over 3 hours of precious HD wedding videos on 4GB of reusable memory. Its fully rechargeable battery offers over 4 hours of playback time between charges.
- LUXURIOUS & TIMELESS DESIGN - The Motion Books feature a fine linen hardcover with elegant foil titles, making it a perfect keepsake or gift to treasure special memories.
- USER-FRIENDLY & VERSATILE - Includes convenient controls like play/pause, previous/next video (fast forward and fast rewind), and volume buttons. You can load many videos and photos of your cherished memories to create a one-of-a-kind video book.
U.S. law: limited provisions, not a general release right
Title 17 U.S.C. §1201 includes a limited interoperability provision. It concerns a person who lawfully obtained the right to use a program and needs to identify elements necessary for interoperability with an independently created program, to the extent the acts do not infringe copyright. That provision is not a general permission to publish a reconstructed game.
37 C.F.R. §201.40(b)(19) describes specified circumvention involving lawfully acquired complete games after server authentication has ended, including restoring local play or enabling preservation by an eligible library, archive, or museum. It also addresses qualifying games no longer reasonably available commercially for preservation by eligible institutions. The exemption has conditions concerning noncommercial activity, institutional eligibility, security, and access or distribution. The Copyright Office’s 2024 recommendation records the video-game preservation exemption’s origin in 2015 and recommends renewal of preservation exemptions. Exemptions are time-limited and may change in later proceedings, so anyone relying on one should check the regulation currently in force and obtain appropriate legal guidance.
Neither the interoperability provision nor the preservation exemption should be read as automatically authorizing distribution of a game, ROM, original assets, or server content. The applicable rights and the precise conduct still matter.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




