Skip to content

RetroArch

RetroArch is a unified graphical front-end for emulators. On Linux, it can be installed from your package manager, Steam, Flathub and even Snapcraft.

Core installation

RetroArch doesn't come with emulators by default. Called "cores" in RetroArch, they're plugins implementing the Libretro API. To install them, you do it through the online updater, directly from RetroArch. You can do it manually by downloading the core you want from buildbot.libretro.com and extracting it to ~/.config/retroarch/cores/.

Warning

When installed through your Linux package manager, RetroArch online updater might be disabled by default. You'll have to edit its configuration file to enable it.

Warning

On Linux, if you encounter the "No Cores Available" error, you might have to change the cores path in the RetroArch configuration file.

Adding games

The easiest way is to scan a directory where games from the same system are located. To do that, select "Manual Scan", then a content directory with "Content Directory", set "Default Core" and choose "Start Scan". A new entry should have been added to the RetroArch main menu.

Systems

PC-98

PC-98 games can easily be played through RetroArch thanks to the np2kai libretro core.

  1. Install np2kai manually or from the online updater.
  2. Place the font file (font.rom, FONT.ROM, or font.bmp) inside ~/.config/retroarch/system/np2kai/. Refer to the official BIOS setup documentation for more details.
  3. Run RetroArch and scan the directory where the games are located.
  4. Configure the core with the following settings (it should run most of the translated games).
SettingValue
PC ModelPC-9801VX
CPU Clock Multiplier42
RAM Size16
CPU Feature80386
Sound BoardPC9801-86
GDCuPD7220
JastSoundOFF
Floppy Seek SoundOFF
Volume Floppy Seek0
Volume Beep0
Mouse or Touchpanel InputON
D-pad to Mouse/Keyboard/Joypad MappingManual Keyboard

These settings can be tweaked further depending on the game. For more information, check out the PC-98 Game FAQ and the official libretro core docs.

Advanced Users

The following section is for advanced users who want to remap their joystick buttons.

To remap joystick buttons, edit the lrjoybtn setting in the following file:

~/.config/retroarch/system/np2kai/np2kai.cfg

Using the np2kai documentation:

"This value is little endian and 12 values ​​of 16bits (2 Bytes) are arranged. Write the key code of RETROK (see libretro.h) to this value. The order is: D-UP / DOWN / LEFT / RIGHT / A / B / X / Y / L / R / Select / Start."

For example, to bind the Up Arrow key to D-UP:

  • Find the RETROK code in libretro.h (273)
  • Convert it to little-endian hexadecimal → 1101
  • Add a space between bytes → 11 01

Repeat for each button.

A full example line would look like this:

ini
lrjoybtn = 11 01 12 01 14 01 13 01 78 00 7a 00 20 00 32 01 08 00 2f 01 1b 00 0d 00

DOS

Install the DOSBox Pure core manually or from the online updater.

For some specific games, you can also install the ScummVM core manually or from the online updater.

Troubleshooting

Contributors

The avatar of contributor named as moogul moogul
The avatar of contributor named as Amb0s Amb0s

Changelog