Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Contributing

Bug reports, translations, documentation and code are welcome.

Report a bug or request a feature

Open an issue. For bugs, follow Reporting a bug.

Set up a development environment

You need Nix with flakes.

git clone https://github.com/FapLandPartyDev/RustyFunPlayer
cd RustyFunPlayer
nix develop                                    # pinned Rust and native libraries
cargo run --locked --bin rustyfunplayer

With direnv, run direnv allow once. The shell also installs Git hooks (prek): formatting and lints before each commit, Clippy and tests before each push.

Repository layout

PathContents
crates/rfp-coreScript parsing, motion, TCode. No UI.
crates/rfp-adaptersSources, outputs, inputs, libraries.
crates/rfp-uiGPUI app and settings.
crates/rfp-detectGame, app and device detector, IVE bridge.
crates/rfp-ui/localesTranslations (Fluent).
nix/Package, NixOS and Home Manager modules.
website/This documentation.
docs/Technical and protocol notes.

Before you open a pull request

Run prek run --all-files (formatting, Clippy, tests). Commit messages follow Conventional Commits, such as fix(serial): retry after a port reset. Also:

  • Put user-facing text in the Fluent files of every language under crates/rfp-ui/locales and read it with crate::i18n::tr().
  • Make new settings work through programs.rustyfunplayer.settings (NixOS and Home Manager).
  • Keep behavior from the original MultiFunPlayer exactly; tests compare against it.

The full list of checks is in docs/ENGINEERING.md.

Translate

Each language is a folder in crates/rfp-ui/locales (en, zh-Hans).

  • Improve a translation: edit the .ftl files of that language.
  • Add a language: copy en/ to a new folder named by its language tag (for example fr), translate the values, and keep the message IDs and { $variables } unchanged. Set language-name in common.ftl to the language’s own name. The build picks up the new folder automatically; comments above messages explain each variable.

Test it with LANG=fr_FR.UTF-8 cargo run --bin rustyfunplayer, or pick it in Settings → General → Language.

Improve this documentation

The site is built with mdBook from website/.

nix run nixpkgs#mdbook -- serve website --open

Pages are Markdown in website/src; the menu is website/src/SUMMARY.md. Keep pages short: steps, tables, one screenshot where it helps. Screenshots go in website/src/images as PNG, dark theme, without personal paths or names. Every page has an edit link at the top.

License

Contributions are licensed under AGPL-3.0-or-later.