Thanks for helping improve 5DO. This project is a C#/.NET 10 emulator with a deterministic core, an Avalonia desktop app, a headless CLI, and a documentation site. Contributions of code, tests, documentation, compatibility evidence, and reproducible bug reports are all welcome.
By participating, you agree to follow the Code of Conduct.
- Check the FAQ, Known issues, and Troubleshooting first.
- Search existing issues and discussions.
- For a large change, open a discussion or an issue before writing the implementation.
- Never include BIOS ROMs, game images, or extracted game assets in a commit, issue, discussion, test fixture, or diagnostics bundle.
Requirements:
- .NET SDK 10.0.301 (pinned by
global.json). - Git.
- Optional: PowerShell 7 for packaging/soak scripts and Python 3.12+ for the docs site.
- Optional: a legally obtained BIOS and disc images for real-content validation.
git clone https://github.com/purelogiccode/5DO.git
cd 5DO
dotnet build 5DO.sln
dotnet test 5DO.slnThe test suite does not need a BIOS or game images. Real-content tests and sweeps are manual and use files you supply locally.
| Path | Contents |
|---|---|
src/FiveDo.Core |
Contracts, shared types, constants, state interfaces |
src/FiveDo.Cpu |
ARM60 interpreter and disassembler |
src/FiveDo.Memory |
RAM, ROM, NVRAM, mirrors, word-swapped access |
src/FiveDo.Madam |
MADAM/CEL, matrix engine, pixel pipeline |
src/FiveDo.Clio |
CLIO timers, interrupts, FIFOs, DMA, XBUS window |
src/FiveDo.Dsp |
3DO DSP and audio sample generation |
src/FiveDo.Sport |
SPORT VRAM fill/copy |
src/FiveDo.Video |
VDLP, frame assembly, filters, CPU presenter |
src/FiveDo.Video.OpenGL |
OpenGL/GLES desktop presenter |
src/FiveDo.Video.Vulkan |
Optional Vulkan presenter |
src/FiveDo.Xbus |
Controller/peripheral bus |
src/FiveDo.Cdrom |
CD-ROM command state machine |
src/FiveDo.Storage |
ISO/BIN/CUE/CHD, BIOS/NVRAM, game database, file system |
src/FiveDo.Audio |
Audio pipeline, OpenAL/WAV/null sinks, analysis |
src/FiveDo.Input |
Controller state, profiles, scripts, recording |
src/FiveDo.Machine |
Machine composition, Quartz scheduler, frame loop |
src/FiveDo.Host |
Settings, library, save slots, profiles, diagnostics |
src/FiveDo.Cli |
Headless command-line interface |
src/FiveDo.Frontend.Avalonia |
Desktop frontend |
tests/FiveDo.Tests |
xUnit tests |
benchmarks/FiveDo.Benchmarks |
Deterministic performance gate |
tools/FiveDo.DiffHarness |
5DO vs OperaCore differential harness |
docs/ |
Documentation site source |
wiki/ |
Curated GitHub wiki source |
See Architecture and Developer Guide for the dependency rules and extension points.
The build enforces most of these:
net10.0, nullable enabled, implicit usings disabled.- Warnings are errors; NuGet audit findings are errors.
- Deterministic builds; no wall-clock or hidden global state in the core.
- One console subsystem per project; no chip-to-chip project references. Wire devices
through
FiveDo.Coreinterfaces andFiveDo.Machine. - Keep hot paths allocation-free in steady state. The benchmark gate enforces zero managed bytes/frame.
- Use source-generated JSON contexts for settings, state metadata, and CLI
--jsonoutput. Keep trimmed and NativeAOT paths healthy. - Follow the existing naming, file layout, and documentation-comment style.
- Add or update tests for behavior changes. Include a real-content hash or state roundtrip when the change affects emulation.
Run formatting before opening a pull request:
dotnet format 5DO.sln --verify-no-changesThe test layers are described in Test Strategy. At minimum:
dotnet build 5DO.sln -c Release
dotnet test 5DO.sln -c ReleaseFor emulation changes, record the evidence in the relevant document rather than only in the pull request:
- frame/audio/state hashes in Test corpus;
- per-title status in Game compatibility list;
- sweep results in Game compatibility results;
- known limitations in Known issues.
Use the CLI's deterministic checkpoint and capture options where possible:
dotnet run --project src/FiveDo.Cli -- run game.chd --bios bios/panafz1.bin `
--frames 3000 --checkpoints 3000 --state-out state.tdos --jsonThe docs site is built with MkDocs Material:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --require-hashes -r requirements-docs.txt
mkdocs build --strictUpdate the user-facing page, the implementation-facing page, and the changelog when behavior changes. See Documentation guide and the documentation source guide.
- Fork the repository and create a focused branch.
- Keep the change scoped; avoid unrelated formatting or refactoring.
- Add tests and documentation with the implementation.
- Run build, tests, format, and
mkdocs build --strictif docs changed. - Open a pull request using the template. Describe the problem, the approach, and the evidence.
- Respond to review comments and keep CI green.
CI runs on Windows, Linux, and macOS, including build/test, format verification, benchmark gates, trimmed publish smoke tests, NativeAOT smoke tests, docs builds, and security analysis. A pull request is not ready to merge while required checks fail.
Do not open a public issue for a vulnerability. Follow SECURITY.md and use GitHub's private vulnerability reporting.
5DO is distributed under the FreeDO modified GNU LGPL. By contributing, you agree that your contribution can be distributed under the project license. Read LICENSE, THIRD-PARTY-NOTICES.md, and docs/Licensing.md before adding third-party code, data, or assets.
Do not add dependencies, fonts, shaders, game metadata, or artwork unless the license is compatible and the attribution is recorded.