Contributing
OpenROM is GPL-3.0 open source and welcomes contributions of every size — a bug report with a good log is as valuable as a feature pull request.
The repository’s CONTRIBUTING.md is the canonical version; this page summarises it.
Reporting bugs
Section titled “Reporting bugs”Check that you are on the latest release and search existing issues first. Then include:
| Detail | Example |
|---|---|
| OS and version | Windows 11, Ubuntu 22.04, macOS 15 |
| Dart version | output of dart --version |
| Steps to reproduce | the file, the conversion, the settings |
| Expected vs actual | what you expected, what happened |
| Log file | attached, not pasted inline |
Log locations:
| Platform | Path |
|---|---|
| Windows | %APPDATA%\OpenROM\logs\ |
| Linux | ~/.config/OpenROM/logs/ |
| macOS | ~/Library/Application Support/OpenROM/logs/ |
Suggesting features
Section titled “Suggesting features”Open an issue with the enhancement label and describe the problem the feature
solves, what the experience should look like, and any tools or references that
could help implement it.
Pull requests
Section titled “Pull requests”git checkout -b feature/your-feature-nameKeep commits focused and descriptive, test a real conversion end to end, and
open the pull request against main with a clear title and a short rationale.
Screenshots or terminal output help reviewers.
Adding a conversion format
Section titled “Adding a conversion format”New routes normally belong in the core engine:
- Add the format to the detection table in
core/lib/src/detector.dart. - Add the route to the conversion map.
- Implement the dispatch in
core/lib/src/converter.dart. - Parse tool output into progress events.
- Add a test fixture and a real-file smoke test.
Formats that wrap a third-party binary can ship as a .orplug extension instead
— see Plugins. That is usually the better choice for
console-specific or licensed tooling.
Code style
Section titled “Code style”- Dart 3.14+ / Flutter 3.50+ — use modern syntax (patterns, records, sealed classes).
- Type annotations on all function signatures.
- Log through
core/lib/src/logger.dart; neverprint()in core logic. - No hardcoded paths: resolve tools and directories through
core/lib/src/config.dart. - One class per file in
gui/lib/screens/. - Never block the UI thread; use
async/awaitor isolates.
Building from source
Section titled “Building from source”# CLI and corecd coredart pub getdart run bin/openrom.dart --help
# GUIcd ../guiflutter pub getflutter run -d linux # or windows / macosPlatform build scripts live at the repository root: build_linux.sh,
build_mac.sh, build_windows.bat.
Translating
Section titled “Translating”The app ships 11 locales and translations are managed on Crowdin via
crowdin.yml. You do not need to touch Dart code to translate. See
TRANSLATORS.md for
the current language list, credit policy and how to claim a locale.
Licence of contributions
Section titled “Licence of contributions”By contributing you agree that your work is licensed under GPL-3.0 for code, and under CC-BY-SA-4.0 for documentation.