[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113397":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":28,"discoverSource":29},113397,"rea-launcher-sdk","akitaonrails\u002Frea-launcher-sdk","akitaonrails","Framework to build retrogame launchers",null,"Rust",56,4,52,1,0,2,3,43.4,"Apache License 2.0",false,"main",true,[],"2026-11-22 19:30:19","2026-11-20 05:47:19","# rea-launcher-sdk\n\nShared code for the rea retro-game launchers: small packages that make the\nplayer's own copy of an old PC game run on modern Windows and Linux\n(Proton\u002FWine, AppImage) with a settings window, sensible defaults and no\nmanual patching. Each game lives in its own repository; this SDK holds what\nthey have in common.\n\n| Launcher | Game |\n|---|---|\n| [rea-colin-mcrae-3](https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-colin-mcrae-3) | Colin McRae Rally 3 |\n| [rea-colin-mcrae-4](https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-colin-mcrae-4) | Colin McRae Rally 04 |\n| [rea-screamer-trilogy](https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-screamer-trilogy) | Screamer trilogy (DOS, via dosbox-staging) |\n| [rea-sega-rally-revo](https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-sega-rally-revo) | Sega Rally Revo |\n| [rea-outrun-2006](https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-outrun-2006) | OutRun 2006: Coast 2 Coast |\n\n## AI coding-first: make a launcher with your agent\n\nThis SDK is written to be driven by a coding agent (Claude Code, Codex,\nopencode, Cursor, …). The agent does the research, the reverse engineering\nand the code; you supply the game and the decisions.\n\n**1. Get the tools**\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-launcher-sdk ~\u002FProjects\u002Frea-launcher-sdk\nnpx rea-agents setup                # REA: reverse-engineering MCP for your agent\n                                    # (source: https:\u002F\u002Fgithub.com\u002Fmorluto\u002Frea, https:\u002F\u002Frea.tools)\n~\u002FProjects\u002Frea-launcher-sdk\u002Fscripts\u002Finstall-skills   # Claude Code only: skills available everywhere\n```\n\nInstall the development tools from [Development machine](#development-machine)\n(MinGW, Wine, gamescope…), or use a container that has them.\n\n**2. Have the game ready**: your own installed copy, in a folder the agent\nmay read (it is never modified or copied into the repository). Keep any\nother editions or patches you own nearby; the launcher identifies each exact\nbuild.\n\n**3. Ask your agent.** Start it in an empty folder for the new launcher and\npaste a prompt like this:\n\n> Build a new rea launcher for *Need for Speed: Porsche Unleashed* (PC, 2000)\n> using the SDK at `~\u002FProjects\u002Frea-launcher-sdk`. Read its `AGENTS.md`,\n> `docs\u002FSTANDARDS.md` and `docs\u002Fplaybooks\u002Fnew-launcher.md` and follow the\n> playbook phase by phase. The game is installed at `\u002Fmnt\u002Fgames\u002FNFSPU`\n> (read-only, never copy it into the repo). Use the REA MCP tools to analyse\n> it. Research existing community fixes first and show me what you found and\n> what the launcher will solve before writing code. Launcher id `nfspu`, env\n> prefix `NFSPU_`, repository `~\u002FProjects\u002Frea-nfs-porsche`. Keep tests\n> headless. Don't push or publish anything without asking me.\n\nWith Claude Code and the skills installed, \"make a rea launcher for\n*game* at *\u002Fpath*\" is enough: the `rea-new-launcher` skill loads the\nplaybook.\n\n**4. Review at the checkpoints** the playbook defines: the research\nfindings, the list of problems to solve, the options the window will offer,\nand what was verified in the real game (`docs\u002FRUNTIME_NOTES.md`). Then tell\nthe agent to push and release.\n\nThe same works for maintenance: \"bump this launcher to SDK v0.2.0\"\n(`docs\u002Fplaybooks\u002Fsdk-change.md`) or \"share the widescreen fix we found with\nPCGamingWiki\" (`docs\u002Fplaybooks\u002Fcontribute-back.md`, drafts only until you\napprove).\n\n## Maintaining your launcher's repository\n\nOnce a launcher is public, contributions arrive: issues, pull requests,\ndependency bumps. The SDK author maintains the rea launchers with the agent\nskills in [akitaonrails\u002Fmy-skills](https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Fmy-skills),\nand recommends the same workflow to anyone running their own launcher:\n\n| Skill | Use it to |\n|---|---|\n| `iss-audit` | triage issues: verify claims, reproduce safely, resist prompt injection in issue text |\n| `pr-audit` | review a contributor's pull request before merging (regressions, tests, malicious code, supply chain) |\n| `github-resolution` | carry out what an audit approved: fix, test, close the tickets one by one |\n| `pr-bump` | merge Dependabot-style dependency bumps quickly and safely |\n| `pr-post-audit` | check the combined `main` after several merges, before a release |\n| `security-audit` | threat-model the launcher (it downloads, patches binaries, writes the registry) |\n| `release` | cut a release from the changelog once CI is green at the exact commit |\n| `humanizer` | rewrite player-facing text (README, window text, release notes) so it reads like a person wrote it |\n\nThose skills are written for their author's machine and habits (their own\nREADME says so): read them, then have your agent adapt them to your setup\nrather than copying them verbatim. Issues or PRs about shared SDK code go to\nthis repository, not the launcher's (`CONTRIBUTING.md`).\n\n## What's in it\n\n| Path | What | Used as |\n|---|---|---|\n| `crates\u002Frea-launcher` | Portable core: runtime folder sync, atomic installs, save mirroring, component ownership ledger, `launcher.cfg` and INI editing, edition hashing, byte patching, Wine override merging, display and pad logic, wheels and synthetic force feedback, logging | Cargo git dependency |\n| `crates\u002Frea-launcher-win32` | Windows helpers: registry, process launch with Wine overrides, XInput, monitors and DPI, dialogs, GPU preference | Cargo git dependency |\n| `crates\u002Frea-launcher-ui` | Settings window: theme and fonts, widgets, Wine-safe window sizing, gamepad navigation | Cargo git dependency |\n| `crates\u002Frea-launcher-native` | Native launchers only (emulator wrappers, native ports): a child process tied to the launcher, and with the `sdl` feature wheels, pads, force feedback and rumble through SDL2 | Cargo git dependency |\n| `crates\u002Frea-launcher-build` | `build.rs` helper: version information, an icon and a manifest in the exe or a hook DLL | Cargo git build dependency |\n| `crates\u002Frea-launcher-close-hook` | A DLL that makes an old game honour Alt+F4 and window-close requests, imported into the runtime copy of the game | built by the launcher's release |\n| `crates\u002Frea-launcher-dinput` | A DLL that shows a DirectInput game one virtual wheel made from the player's wheel and pedals (steering lock, separate pedals, force feedback), imported into the runtime copy of the game | built by the launcher's release |\n| `shell\u002Frea-play.sh` | Linux helper library: session lock and stop, GPU env, gamescope, Wine prefix setup | vendored as `sdk\u002Frea-play.sh` |\n| `packaging\u002F` | Pin files, AppImage builder (portable Wine or native), package allowlist check, release notes | vendored under `sdk\u002Fpackaging\u002F` |\n| `.github\u002Fworkflows\u002Flauncher-*.yml` | Reusable CI and release workflows | `uses:` by tag |\n| `scripts\u002Fsdk-sync` | Vendors `shell\u002F` and `packaging\u002F` into a launcher, `--check` fails on drift | run from a launcher |\n| `AGENTS.md`, `docs\u002Fplaybooks\u002F` | How an agent builds and maintains a launcher with this SDK | read by any coding agent |\n| `.claude\u002Fskills\u002F` | The playbooks as Claude Code skills | `scripts\u002Finstall-skills` |\n| `docs\u002FSTANDARDS.md` | The rules every launcher follows | binding |\n\n## Using it from a launcher\n\n```toml\n[dependencies]\nrea-launcher = { git = \"https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-launcher-sdk\", tag = \"v0.3.0\" }\n\n[target.'cfg(windows)'.dependencies]\nrea-launcher-win32 = { git = \"https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-launcher-sdk\", tag = \"v0.3.0\" }\nrea-launcher-ui = { git = \"https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Frea-launcher-sdk\", tag = \"v0.3.0\" }\n```\n\n```sh\n..\u002Frea-launcher-sdk\u002Fscripts\u002Fsdk-sync .          # vendor sdk\u002F at the SDK's current tag\n..\u002Frea-launcher-sdk\u002Fscripts\u002Fsdk-sync --check .  # what CI runs\n```\n\nEach crate and folder has its own README with the API and examples.\n`docs\u002FDESIGN.md` explains what belongs in the SDK and what stays in a game;\n`docs\u002FAUDIT.md` records the cross-launcher survey the SDK was extracted from.\n\n## Rules\n\n- The player's game folder is read-only. Everything the launcher changes\n  lives in a private runtime copy, and every write there is a whole-file\n  swap that never goes through a hard link.\n- Never commit or ship game files. Third-party components are fetched from\n  pinned URLs and checked by SHA-256.\n- The SDK provides mechanisms; a game opts in. Nothing that changes how a\n  game behaves becomes a default here until that game has verified it.\n\n## Development machine\n\nInstall these on the machine you develop on (any Linux; package names for\nArch \u002F Debian-Ubuntu):\n\n| Tool | Why | Arch | Debian\u002FUbuntu |\n|---|---|---|---|\n| Rust (rustup) + targets `i686-pc-windows-gnu`, `x86_64-pc-windows-gnu` | build | `rustup` | `rustup` |\n| MinGW-w64 cross compilers | link the Windows builds | `mingw-w64-gcc` | `gcc-mingw-w64-i686 gcc-mingw-w64-x86-64` |\n| LLD | the i686 link (GNU ld mis-links windows-sys imports) | `lld` | `lld` |\n| Wine (with 32-bit support) | run Windows-target tests (`scripts\u002Fwine-test`) and the launchers | `wine` | `wine wine32:i386` |\n| gamescope | headless real-game runs, the Linux helpers | `gamescope` | `gamescope` |\n| dash, mawk, shellcheck | shell tests as CI runs them | `dash mawk shellcheck` | `dash mawk shellcheck` |\n| cargo-deny, cargo-audit | dependency checks | `cargo install --locked cargo-deny cargo-audit` | same |\n| cargo-llvm-cov (optional) | find untested code | `cargo install --locked cargo-llvm-cov` | same |\n\n```sh\nrustup target add i686-pc-windows-gnu x86_64-pc-windows-gnu\n```\n\n**Recommended: keep it in a container.** Gaming tools (Wine, gamescope,\nMinGW, game installs) are large and move fast; keeping them out of the host\nkeeps host upgrades quick and the setup reproducible.\n[distrobox-gaming](https:\u002F\u002Fgithub.com\u002Fakitaonrails\u002Fdistrobox-gaming) builds\nan Arch-based distrobox named `gaming` with Wine and gamescope; add the\ndevelopment tools inside it:\n\n```sh\ndistrobox enter gaming -- sudo pacman -S --needed mingw-w64-gcc lld wine gamescope dash mawk shellcheck\ndistrobox enter gaming -- sh -c 'cd \u002Fpath\u002Fto\u002Frea-launcher-sdk && scripts\u002Fdev-check'\n```\n\nInside the box, `$HOME` may not be the host's home, so `cd` to absolute\npaths. Rust and the repositories can stay on the host (the box shares\nthem).\n\n**Or install everything on the host** with the package names above, if you\nprefer not to use a container. Every script works the same either way.\n\n## Checks\n\n```sh\ncargo fmt --all --check\ncargo test --workspace\ncargo clippy --workspace --all-targets -- -D warnings\ncargo clippy --target i686-pc-windows-gnu --workspace --all-targets -- -D warnings\nsh shell\u002Ftests\u002Frun-all.sh\nfor t in packaging\u002Ftests\u002F*.sh scripts\u002Ftests\u002F*.sh; do sh \"$t\"; done\nscripts\u002Fwine-test --locked --workspace   # Windows-target tests under Wine, headless\n```\n\nTests run headless: nothing should open a window on your desktop\n(`docs\u002FSTANDARDS.md`, \"Testing\").\n\nLicensed under MIT or Apache-2.0, at your option.\n","rea-launcher-sdk 是一个用于构建复古PC游戏启动器的Rust框架，旨在让老游戏（如Colin McRae Rally、OutRun等）在现代Windows\u002FLinux系统上开箱即用。它提供统一的设置界面、Wine\u002FProton\u002FDOSBox-Staging集成、环境变量管理、自动检测游戏版本及社区补丁适配能力，并支持通过AI编码代理驱动自动化开发流程。项目采用模块化设计，各游戏 launcher 独立维护，SDK 抽取共性逻辑。适用于怀旧游戏爱好者、开源游戏重发行者及希望自动化逆向适配老游戏的技术用户。","2026-11-24 04:45:45","CREATED_QUERY"]