mirror of
https://github.com/Heretek-Games/drop-emulation.git
synced 2026-10-12 02:05:15 +00:00
main
Replaces the pre-launch launch-command mutation with an EmulationRunnerProvider that returns LaunchOverrides (executable + arguments) through the game:runner SPI. Declares game:runner in class metadata and the shipped manifest (dropping the now-unused game:launch-hook), and bumps the SDK to ^0.7.0.
Drop Emulation
Emulator and ROM linking plugin for Drop (#10, #189).
How it works
Per-game bindings are stored under the client storage key
binding:<gameId> as { emulatorId, coreId, romPath, command? }. Emulator
definitions live under the emulators key (falling back to the built-in list
in src/emulator.ts).
During the pre-launch:prepare stage the plugin:
- Looks up the game's binding (no-op when unset).
- Validates the ROM exists through the scoped
game:fsAPI. - Probes configured emulators through the allowlisted
system:commandrunner and drops anything missing or failing (--versionprobe). - Rewrites the launch command, expanding
{core}and{rom_path}in the template, and publishesmetadata.launchCommandplusmetadata.emulationon the launch context.
A game-detail:panels slot (EmulatorPanel) shows the configured binding.
Build
npm ci
npm run build
npm test
npm run typecheck
Languages
TypeScript
76.9%
JavaScript
23.1%