DISCLAIMER: The two projects discussed here were coded with AI assistance (Claude Code). They only exist thanks to other people's work. Referenced projects, artwork and their respective authors have all been credited:
If any of this works for you, it is because of them. Support them!
Hi Reddit,
I love my RG ARC-S. It has survived all my retro handheld collection resets in the last 3 years. It strikes the perfect balance between size and comfort, and has some of the best controls of any retro handheld. Yet apart from the excellent Knulli and ROCKNIX, our options for CFW remain limited.
After discovering the amazing TortOS by u/UpdatedPeacock, I spent the last month porting it to the RG ARC-S, with the help of Claude. I called it RikuGame ("ree-koo-gah-meh", リクガメ, Japanese for "tortoise").
RikuGame
The result is an OS that boots in around 6 seconds. Special attention went into making full use of the ARC-S's hardware (the six face buttons, HDMI out, the second SD slot) and into user-friendliness: HDMI hot plug, controllers joining mid-game for multiplayer, etc.
Given that the ARC-S has a little more oomph than the Brick and the Pixel 2, I also added a few bells and whistles:
- A slightly different selection of cores (Nestopia, Snes9x, Mednafen SuperGrafx)
- Additional cores (FBNeo, PCSX ReARMed, PicoDrive for the 32X, and Yabanjin for the Saturn and ST-V, see below)
- Single-pass GLSL shaders (RetroArch format)
- Overlays
- An optional NTSC filter (blargg's) for the cores that have none of their own: 32X, PC Engine, PlayStation and Saturn
- Rewind (except PlayStation, Saturn and ST-V)
- A disc access mark while a game loads (PS, Sega CD, PC Engine CD, FDS, Saturn)
- Play Activity and Performance pages in the Wi-Fi file manager (Over The Hare, Down To The Wire)
Full list of what was added or changed: https://github.com/PitiBatou/RikuGame
Download: https://github.com/PitiBatou/RikuGame/releases
Yabanjin, a Saturn core
RikuGame ships with Yabanjin (野蛮人, "barbarian"), a 100% software-rendered Saturn libretro core: https://github.com/PitiBatou/yabanjin
It comes from the Yabause / Yabadabadoo lineage, with some additions:
- A VDP2 renderer that draws the picture in bands, on three cores
- A new CD drive model, built after Mednafen's
- The sound chip (SCSP): d356's per-sample model, as YabaSanshiro brought it in, tuned to match Mednafen's output as closely as possible
- Two new DSP recompilers (the SCU's and the SCSP's)
- ST-V support (33 sets)
- Bug fixes in the ARM64 SH-2 recompiler and the 68000
How it was made: https://pitibatou.github.io/yabanjin/
In short, Yabanjin's output, sound and image, was compared with Mednafen's and Ymir's. The LLMs were fed the available technical documentation: Hitachi's SH7604 (SH-2) manual, Renesas' SH-2 software manual, and Sega's VDP1, VDP2, SCU and SCSP developer manuals. MiSTer's Saturn core, by the wizard srg320 (support him on Patreon if you can), was also referenced to settle timing disputes where Mednafen and Ymir disagreed, such as the SCU DSP's clocking and DMA timing.
The result: most of the Saturn games I tried, 2D or 3D, play at full speed (no frameskip).
However:
- Testing was limited to 98 games, most of them flagged as "finicky" by Mednafen's or Ymir's developers.
- The whole thing should be considered highly experimental, and its testing lacks any kind of depth (no long play sessions).
- A real Saturn BIOS is required.
Download: ready-made cores for ARM64 Linux (Cortex-A55 and A53 builds) and Android: https://github.com/PitiBatou/yabanjin/releases/tag/v0.5.3. x86-64 Linux builds from source. A Windows version is planned.
Credits (short version)
RikuGame
- Eric Reinsmidt (u/UpdatedPeacock), for TortOS, diatom and plastron: the launcher, the emulator frontend and the system. His Pixel 2 and Brick ports are what the ARC-S port is modelled on.
- The ROCKNIX team and contributors, and JELOS before them, for the ARC-S's hardware support: the kernel config and patches, the bootloader build and the joypad driver.
- The kernel patch authors, whose names stay in every patch.
- The libretro cores' authors.
- Shaders: zadpos's Sharp-Shimmerless, SoltanGris42's zfast shaders, Hyllian's ddt.
- The NTSC filter: the legendary blargg.
- Overlays and HDMI borders: ourigen (Perfect Overlays), 1playerinsertcoin, drkhrse, mugwomp93 and Watomsk.
- Console logos: Dan Patrick (Professionally Redrawn + Official Versions).
- And the projects underneath: Linux, U-Boot, Buildroot, Mesa's Panfrost, SDL, BlueZ, libretro and SDL_GameControllerDB.
Yabanjin
- Yabause, by Guillaume Duhamel, Theo Berkau and its contributors: the emulator everything starts from.
- Ari64, for the SH-2 recompiler (in Yabause since 2009).
- elderica, for its ARM64 backend. Their aarch64-dynarec branch of Yabadabadoo is Yabanjin's starting point.
- ProRapSuperstarOriginalMaster, for Yabadabadoo, the libretro fork of Yabause for small handhelds.
- devMiyax (YabaSanshiro): his work merged into Yabause includes the SH-2 cache model. A recompiler fix in Yabadabadoo came from YabaSanshiro, and his comments pointed to one of our fixes.
- d356, for the per-sample sound chip (SCSP) model, as YabaSanshiro brought it in.
- Bart Trzynadlowski, for the SH-2 disassembler used during debugging.
- Ryphecha and the Mednafen Team, for Mednafen.
- StrikerX3 and contributors, for Ymir.
- Sergiy Dvodnenko (srg320), for MiSTer's Saturn core.
Their projects