MesenCE
MesenCE emulates Nintendo NES, Nintendo Famicom Disk System, Nintendo SNES and 16 more systems. It reads 50 files, 14 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.
About this profile
Install this emulator's files
For MesenCE inside RetroArch, Batocera or another setup. The installer finds the setup and its BIOS folder, then downloads only the files this emulator reads there and checks each one.
Open Start. Type PowerShell, press Enter. Click Copy. Right-click to paste. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator mesencePress Cmd+Space. Type Terminal, press Return. Click Copy. Press Cmd+V. Press Return.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator mesenceOpen a terminal, often with Ctrl+Alt+T. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator mesenceHold power, pick Switch to Desktop. Open Konsole. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator mesenceInstall Termux, a terminal app. Paste the line. Press Enter. Accept the Python install and allow the storage access Android asks for.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator mesenceOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator mesencePlatform details
-
firmware_folder:
- standalone: Firmware/
- libretro: system directory root
-
firmware_size_check: exact
-
ui_hash_check: sha256, advisory, standalone UI only (UI/Interop/FirmwareTypeExtensions.cs)
-
satellaview_streams: Satellaview/BSX<channel>-<index>.bin
-
libretro_subsystem: Super Game Boy: gb|gbc|gbx + sfc|smc
-
source_ref:
Utilities/(emulator code, libretro port),FolderUtilities.cpp:81-91 Libretro/,libretro.cpp:2462-2465 Core/Shared/FirmwareHelper.h(emulator code, libretro port)
Technical notes
MesenCE is the community edition of Mesen2, a multi-system emulator covering NES/FDS, SNES (with Satellaview, Sufami Turbo, Super Game Boy), GB/GBC/GBA, PC Engine (including CD-ROM and SuperGrafx), SMS/Game Gear/ SG-1000/ColecoVision and WonderSwan (including Pocket Challenge V2).
The libretro port lives in the libretro fork of the same tree: Libretro/
wraps the core and Makefile.libretro compiles every file under Core/ with
LIBRETRO defined (Makefile.libretro:165-166,183-184). The fork branched from
af2342818ca81a93b346146802047760400fc7b1 and does not touch
Core/Shared/FirmwareHelper.h, so both builds read the same names with the
same size checks. The buildbot publishes it as mesen2_libretro, and the port
announces library_version 2.0.0 (Libretro/libretro.cpp:3011) while the
compiled core reports 2.2.1 (libretro tree, Core/Shared/EmuSettings.cpp:162-169).
Firmware folder. Standalone reads <home>/Firmware/ (Utilities/FolderUtilities.cpp:81-91).
The libretro port sets the home folder to the frontend system directory
and overrides the firmware folder with that same directory
(Libretro/), so every firmware sits at the system
directory root. Satellaview streams and MesenNesDB.txt are read relative
to the home folder in both builds, which puts them under system/Satellaview/
and system/MesenNesDB.txt for libretro.
Size checks are exact at load time (FirmwareHelper.h AttemptLoadFirmware).
The standalone UI additionally knows SHA256 values per file
(UI/Interop/FirmwareTypeExtensions.cs) and warns on mismatch when
importing through the firmware prompt, but a mismatched file can still be
used. The sha256 values below come from that table. The libretro port
has no prompt: a MissingFirmware notification reaches no listener, the
retry in FirmwareHelper fails the same way and the error goes to the OSD
(Libretro/).
SNES DSP-1/1B/2/3/4 and ST010/ST011 firmware is read as the combined file first, then as the split pair <name>.program.rom + <name>.data.rom (FirmwareHelper.h AttemptLoadDspFirmware). ROM dumps with the firmware appended to the game ROM need no external file (LoadDspFirmware embedded path, Core/Shared/FirmwareHelper.h:132-135).
GB/GBC/SGB boot ROM images are compiled into the core
(Core/Gameboy/GbBootRom.h:8,49,99), and the external files override them.
Super Game Boy mode falls back to the plain GB core when the SNES-side
ROM is missing (Core/SNES/BaseCartridge.cpp:698-716). GameboyConfig
keeps UseSgb2 at true (Core/Shared/SettingTypes.h:455, line 433 in the
libretro tree) and no core option changes it, so the libretro build only ever asks
for SGB2.sfc and sgb2_boot.bin. SGB1.sfc and sgb_boot.bin are standalone
reads. The libretro port also offers a "Super Game Boy" subsystem taking
a GB ROM plus an SNES-side ROM (Libretro/): the
second entry is copied into the system directory as SGB1.sfc or SGB2.sfc
by size for the duration of the load, then removed or restored
(Libretro/,2900-2969).
WonderSwan boot ROMs are read only when WsConfig.UseBootRom is on (Core/WS/WsConsole.cpp:145-150). The libretro port never sets it, so those three files are standalone reads.
PC Engine CD. For .cue content the libretro port first materialises
"[BIOS] Super CD-ROM System (Japan) (v3.0).pce" in the system directory
from syscard3.pce, syscard3.bin, syscard.pce or syscard.bin when the
canonical file is absent or not 256 KB: a 0x40200 or 0x60200 source is
read past its 512-byte header, only the first 256 KB are written, and the
stub is removed after the load (Libretro/libretro.cpp:108-196,2556-2567,2589-2593).
Then FirmwareHelper reads the canonical name or syscard3.pce at exactly
256 KB, in both builds.
NES game database. The libretro port embeds a 6213-line MesenDB.txt
(Libretro/libretro.cpp:85-86,574-576) and then reads MesenNesDB.txt from
the home folder on the first lookup (Core/NES/GameDatabase.cpp:92-103),
merging its 10668 entries over the embedded ones. Standalone deploys the
file from the application's Dependencies.zip. Five Satellaview stream
files ship the same way and are extracted to the home folder at startup, and
user replacements are preserved (UI/Utilities/DependencyHelper.cs:14-67).
Nothing deploys them for libretro. NES and SNES cheat databases
(CheatDb.Nes.json, CheatDb.Snes.json) are read directly from the
embedded archive and never touch the filesystem
(DependencyHelper.cs GetFileContent, UI/ViewModels/CheatDatabaseViewModel.cs:33).
MesenPalette.pal is a libretro read: the mesen_palette core option value
Custom loads it from the home folder, 192 or 1536 bytes
(Libretro/,1490-1492).
HdPacks are per-game texture/audio replacements under <home>/HdPacks/ (system/HdPacks/ for libretro), game content rather than system files.
The libretro port lists nes|fds|unf|unif|sfc|smc|gb|gbc|gba|pce|sgx|cue|
sms|gg|ws|wsc as valid extensions (Libretro/). The
load path itself dispatches on the console extension tables, so .bs, .st,
.col, .sg, .pc2 and .studybox content loads when the frontend passes it.
50 files: 14 required, 36 optional. 7 more files come with the app.
By kind: 44 BIOS and 13 game data.
In this collection: 50 in repo and 0 missing.
Required
Section titled “Required”| File | Status |
|---|---|
dsp1.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
dsp1b.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
dsp2.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
dsp3.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
dsp4.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
st010.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
st011.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
st018.rom
Hashes, validation and source
| required for Nintendo SNES in repo |
BS-X.bin
Hashes, validation and source
| required for Nintendo Satellaview in repo |
SufamiTurbo.sfc
Hashes, validation and source
| required for Nintendo SuFami Turbo in repo |
gba_bios.bin
Hashes, validation and source
| required for Nintendo Game Boy Advance in repo |
disksys.rom
Hashes, validation and source
| required for Nintendo Famicom Disk System in repo |
[BIOS] Super CD-ROM System (Japan) (v3.0).pce
Hashes, validation and source
| required for NEC PC Engine CD in repo |
bios.col
Hashes, validation and source
| required for ColecoVision in repo |
Optional
Section titled “Optional”| File | Status |
|---|---|
dsp1.program.rom
Validation and source
| in repo |
dsp1.data.rom
Validation and source
| in repo |
dsp1b.program.rom
Validation and source
| in repo |
dsp1b.data.rom
Validation and source
| in repo |
dsp2.program.rom
Validation and source
| in repo |
dsp2.data.rom
Validation and source
| in repo |
dsp3.program.rom
Validation and source
| in repo |
dsp3.data.rom
Validation and source
| in repo |
dsp4.program.rom
Validation and source
| in repo |
dsp4.data.rom
Validation and source
| in repo |
st010.program.rom
Validation and source
| in repo |
st010.data.rom
Validation and source
| in repo |
st011.program.rom
Validation and source
| in repo |
st011.data.rom
Validation and source
| in repo |
SGB1.sfc
Hashes, validation and source
| in repo standalone |
SGB2.sfc
Hashes, validation and source
| in repo |
dmg_boot.bin
Hashes, validation and source
| in repo |
cgb_boot.bin
Hashes, validation and source
| in repo |
sgb_boot.bin
Hashes, validation and source
| in repo standalone |
sgb2_boot.bin
Hashes, validation and source
| in repo |
StudyBox.bin
Hashes, validation and source
| in repo |
ymf288_adpcm_rom.bin
Hashes, validation and source
| in repo |
lh5323m1.bin
Source
| in repo |
MesenPalette.pal
Validation and source
| in repo libretro |
[BIOS] Games Express CD Card (Japan).pce
Hashes, validation and source
| in repo |
bios.sms
Hashes and source
| in repo |
bios.gg
Hashes and source
| in repo |
bootrom.ws
Hashes, validation and source
| in repo standalone |
bootrom.wsc
Hashes, validation and source
| in repo standalone |
bootrom_sc.wsc
Hashes, validation and source
| in repo standalone |
Game data
Section titled “Game data”| File | Status |
|---|---|
MesenNesDB.txt
Hashes and source
| optional in repo libretro game data |
BSX0120-0.bin
Hashes and source
| optional in repo libretro game data |
BSX0121-0.bin
Hashes and source
| optional in repo libretro game data |
BSX0122-0.bin
Hashes and source
| optional in repo libretro game data |
BSX0123-0.bin
Hashes and source
| optional in repo libretro game data |
BSX0124-0.bin
Hashes and source
| optional in repo libretro game data |
Comes with the app
Section titled “Comes with the app”| File | Status |
|---|---|
MesenNesDB.txt
Hashes and source
| installed with the standalone emulator game data |
BSX0120-0.bin
Hashes and source
| installed with the standalone emulator game data |
BSX0121-0.bin
Hashes and source
| installed with the standalone emulator game data |
BSX0122-0.bin
Hashes and source
| installed with the standalone emulator game data |
BSX0123-0.bin
Hashes and source
| installed with the standalone emulator game data |
BSX0124-0.bin
Hashes and source
| installed with the standalone emulator game data |
librashader.dlllibrashader runtime for RetroArch-format shader presets
Source
| installed with the standalone emulator game data |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start