mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
Nearly every recomp needs the player's own files, so that filter said nothing. The chips are now All, Installed, You own the game and Runs natively (arm64 Linux or an Android APK), with a row of the original systems found in the catalogs.
177 lines
11 KiB
Markdown
177 lines
11 KiB
Markdown
# Recomps
|
||
|
||
The Recomps tab (More → Recomps, key `recomps`) lists PC builds of console and PC games made
|
||
by static recompilation, decompilation or engine reimplementation. It installs the build that
|
||
runs best on the device and links the game files the player already owns from a store
|
||
DroidDeck is signed in to. It never downloads ROMs, disc images or game files.
|
||
|
||
## The ecosystem (researched 2026-11-30)
|
||
|
||
- **Recomp Launcher** (`elripalda/RecompLauncher`, GPL-3.0; Xarishark is its most active
|
||
contributor). A Tauri desktop launcher for Windows, Linux x86-64 and macOS. It has no Android
|
||
or arm64 Linux build. Its catalog `https://recomplauncher.com/pc-catalog.json` lists about 2,270
|
||
apps, each with fields such as `repo, tag, assets{windows|linux|macos}, files{sha256}, needs,
|
||
setup_steps`. It never ships game data: "Easy Setup" asks for the player's disc or folder,
|
||
then runs the recomp's own prepare step. Recomps can describe that step in a
|
||
`recomplauncher.json` in their release (schema at
|
||
`https://recomplauncher.com/schema/recomplauncher.json`). The FAQ says it is free, has no ads
|
||
and keeps usage stats opt-in. The catalog data has no stated licence, and many `needs` lines
|
||
are machine-written.
|
||
- **Recompa** (`kalasyan/recompa`, GPL-3.0). An Android hub for recomps shipped as APKs. Its
|
||
`https://recompa.app/index.json` lists about 790 ports with Android package names, signer
|
||
hashes, ABIs and game-data requirements (accepted sha1s, conversions such as v64→z64, and
|
||
where the file goes). The data has no stated licence.
|
||
- **PortMaster** (`PortsMaster/PortMaster-New`, MIT). Its `ports.json` lists about 1,500 arm64
|
||
Linux ports. 266 of them link a Steam page and about 64 a GOG page, so they can be matched to
|
||
owned games. Ports expect PortMaster's runtime (`control.txt`, gptokeyb, gl4es).
|
||
- Most recomps need a console dump: N64 ROMs (Zelda64Recomp, Starfox64Recomp, BanjoRecomp, the
|
||
Ship of Harkinian family) or Xbox 360 files (XenonRecomp: UnleashedRecomp, MarathonRecomp).
|
||
The ones that fit DroidDeck's stores are source ports and engine reimplementations whose data
|
||
is sold on Steam or GOG: OpenMW (Morrowind), DevilutionX (Diablo, GOG), OpenRCT2, Fallout 1/2
|
||
CE, Quake ports, Xash3D (Half-Life), Julius/Augustus (Caesar III), VCMI and fheroes2 (Heroes
|
||
III and II), CorsixTH and OpenLoco.
|
||
- N64Recomp projects (Zelda, Starfox, Banjo), DevilutionX, Xash3D and fheroes2 publish **arm64
|
||
Linux** builds, which run natively in DroidDeck's runtime. Most others publish x86-64 Linux,
|
||
which runs through FEX, and Windows, which runs through Proton.
|
||
|
||
## Catalog
|
||
|
||
DroidDeck keeps no catalog. `RecompCatalog` downloads the two community catalogs, caches them in
|
||
`files/recomps/`, revalidates each with its ETag after 6 hours, and merges them on the device. Parsing
|
||
both takes about 0.4 s.
|
||
|
||
1. Recomp Launcher's `https://recomplauncher.com/pc-catalog.json` (about 2.4 MB gzipped) supplies
|
||
Windows and Linux builds:
|
||
- `assets` globs become patterns, and `files` names give pinned files and sha256s.
|
||
- `boot.start` / `start_linux` name the program, `boot.files.what` or `needs` the data, and
|
||
`setup_required` / `setup_steps` the setup note.
|
||
- Archived, `soon`, non-GitHub and `installer` / `not-a-game` / `source` entries are left out, as
|
||
are Flatpak bundles and 32-bit or arm64 Windows builds.
|
||
2. Recompa's `https://recompa.app/index.json` (about 1.2 MB gzipped) supplies Android APKs. Each port
|
||
uses its fork with the most downloads that has a sha256, a package and a signer. `assets[0]` becomes
|
||
the data requirement, with accepted sha1s. Ports without arm64, or needing a newer SDK, are left out,
|
||
as is Recompa's own app.
|
||
|
||
A Recompa port with the same GitHub repo (or id) as a Recomp Launcher app adds its APK to that app.
|
||
The card lists the catalogs an entry came from, and the README credits both. As of 2026-11-30 this
|
||
gives 2,646 entries:
|
||
|
||
| Build | Entries |
|
||
|---|---|
|
||
| Linux arm64 | 40 |
|
||
| Linux x86-64 | 1,141 |
|
||
| Windows x86-64 | 2,007 |
|
||
| Android | 768 |
|
||
|
||
82% of builds name their release file, so they download without the GitHub releases API. The others
|
||
are resolved through that API at install time, which allows 60 unauthenticated calls an hour per
|
||
address.
|
||
|
||
The build is chosen in the order linux-arm64 (native), android, linux-x64 (FEX), windows-x64
|
||
(Proton). When the catalog names no program, one is guessed after unpacking:
|
||
- Linux: an AppImage, else the executable ELF whose name is closest to the project's, nearest the top.
|
||
- Windows: `GameExePicker`'s best exe.
|
||
|
||
## Installing
|
||
|
||
`RecompInstaller.install`:
|
||
|
||
1. Downloads the asset, checking its sha256.
|
||
2. **Linux build:** `bsdtar` in the guest unpacks it into the app cache, keeping modes and
|
||
symlinks, and unpacks once more when the result is a single archive (Zelda's zip holds a
|
||
tar.gz). It then finds `entry` up to four folders down. An AppImage, whether downloaded
|
||
directly or found inside the archive, goes to `AppImageManager.import`. Anything else becomes
|
||
a user app (`UserApps.addPrepared`): the unpacked tree moves to
|
||
`/opt/droiddeck-apps/<id>/files`, and a `droiddeck-recomp` wrapper, which starts the program from
|
||
its own folder, becomes its entry.
|
||
`droiddeck-script-run` launches it, so `droiddeck-fex` decides between native and FEX from
|
||
the folder's ELFs, exactly as for any added Linux app. It also shows on the Desktop page.
|
||
3. **Windows build:** unpacks into `<first Games folder or the store install root>/Recomps/<id>`
|
||
and registers the exe with `AddedGames.addExe`. It then appears in the Library (Custom) and
|
||
runs through Proton.
|
||
4. **Android build:** checks the APK's package name and signing certificate against the catalog,
|
||
then installs it through `PackageInstaller` (`RecompAndroid`). The confirmation prompt comes from
|
||
the system. The install shows as Play and Remove on the card, and in the Apps tab. The installed tag
|
||
is kept in `files/recomps-android/<package>`.
|
||
5. Writes `recomp-id`, `recomp-tag`, `recomp-published` and `recomp-platform` beside the
|
||
install. `RecompInstaller.installed` finds installs by those files. An update installs the
|
||
new release first and then deletes the old folder.
|
||
|
||
## Game data
|
||
|
||
The catalogs name the game a PC port needs (`game`), but not its store ids. For PC ports,
|
||
`RecompData` compares that title with the player's installs (store sidecars and Steam client
|
||
libraries) and owned games (`StoresState.library` and the Steam page). Titles are compared without
|
||
case, punctuation, a leading "The", or edition words such as GOTY, Definitive, Enhanced or Complete.
|
||
|
||
- **Installed:** the card shows "Installed on Steam" and the guest folder to point the program at.
|
||
- **Owned:** the card offers "Install game".
|
||
- **Otherwise:** the card shows what the catalog says the game needs.
|
||
|
||
Console recomps are never matched, because no store sells their dumps.
|
||
|
||
## UI
|
||
|
||
- **Top of the page:** a header, one line saying what the tab does, a search box (name, game,
|
||
origin, repo), filter chips with counts (All, Installed, You own the game, Runs natively), and a
|
||
row of system chips built from the origins in the list, with the most entries first.
|
||
- "Runs natively" means the build that would install is arm64 Linux or an Android APK.
|
||
- Almost every entry needs the player's own game files, so that is shown on each card, not offered
|
||
as a filter.
|
||
- **List:** a lazy grid, two columns from 820 dp and one below, capped at 300 cards until the player
|
||
searches. Cards are sorted installed first, then games installed from a store, then owned games,
|
||
then the rest by download count.
|
||
- **Each card:**
|
||
- The catalog's art, the game and its origin.
|
||
- Chips for the build (green once installed), the data, "Android app too", "Needs setup first",
|
||
and "via Recomp Launcher" / "via Recompa".
|
||
- Actions: Install, or Play / Open in Games; Update to <tag> when a feed names a newer release;
|
||
Install game; and Remove or Project page.
|
||
- **Credits:** a line at the end of the page names both catalogs.
|
||
- **Focus:** controller focus enters on the first card's primary button.
|
||
|
||
## Tested
|
||
|
||
These device runs used the earlier hand-made list. Each recomp is still installed and launched by the
|
||
same code.
|
||
|
||
- **Retroid Pocket Duo:**
|
||
- Zelda 64: Recompiled v1.2.2 (linux-arm64) installed and reached its own Select ROM screen natively.
|
||
- Ironwail v0.8.2 (linux-x64) ran through FEX and asked for its `-basedir` (Quake's folder).
|
||
- Ship of Harkinian (Android, Recompa): the APK passed the package and signer checks, Android's
|
||
install prompt appeared, and after confirming it the card showed Play, which launched the app.
|
||
- Ports already installed were recognised.
|
||
- The top screen shows the page; the bottom screen's rail is labelled Recomps.
|
||
- **Pocket FIT Elite (portrait 1080×1920):**
|
||
- The More tile, the one-column page and installs work.
|
||
- A launch of an x86 Linux build stopped with exit 126: FEX needs the Steam Linux Runtime
|
||
(sniper), and that device had never opened Steam. This applies to every x86 Linux app in
|
||
DroidDeck.
|
||
- **Unit tests:** `RecompsTest` parses and merges sample feeds and covers pins, signed APKs, title
|
||
matching, release picking, program guessing and the wrapper (run under `/bin/sh`). `NavTabsTest`
|
||
covers the tab.
|
||
|
||
## Not done yet
|
||
|
||
- **Recompa delivery rules.** Hand a chosen ROM to an Android port the way Recompa's `delivery`
|
||
says: an in-app picker, a shared folder or an intent.
|
||
- **Recomp Launcher setup.** Run its `recomplauncher.json` `inputs` / `prepare` steps, so recomps that
|
||
build from the player's dump (Unleashed, Marathon, the `setup` entries) can be set up from DroidDeck.
|
||
Xarishark offered help on the DroidDeck Discord (2026-11-12).
|
||
- **Choosing a build.** Let the player choose another build when an entry has several (for example
|
||
the Android port instead of the FEX one).
|
||
- **Linking your own folder.** For data copied from a PC: a folder picker the card remembers.
|
||
- **Native builds the catalogs miss.** Recomp Launcher lists one Linux build per app, usually x86-64.
|
||
Several projects (Zelda64Recomp, Starfox64Recomp, BanjoRecomp, DevilutionX) also publish arm64
|
||
builds. Trying the arm64 sibling of a Linux asset first would run those natively instead of
|
||
through FEX.
|
||
- **ROM checks.** Hash a chosen ROM against `sha1` and say whether it is the right one.
|
||
- **x86 runtime hint.** A linux-x64 build needs Steam opened once so the FEX runtime (sniper) is
|
||
installed. Show that on the card, or fall back to the Windows build.
|
||
- **Steam ownership** relies on the Steam page's library or the Steam store sign-in. A game
|
||
installed by the Steam client counts as installed regardless. Title matching can miss renamed
|
||
editions.
|
||
- **Recomp setup steps.** Some recomps build themselves from the player's data with bundled
|
||
Python (Recompia). They need executable storage, so they must stay inside the Linux root, never
|
||
under `/media`; see the Discord thread on Recompia from 2026-11-15.
|