From 22f1edb7d3ed3b9440675ce5da9d49cabf8ca200 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 24 Oct 2026 00:57:03 +0200 Subject: [PATCH] refactor: fold mednafen_pce into beetle_pce Both profiled libretro/beetle-pce-libretro at b96c11e. mednafen_pce becomes an alias; beetle_pce takes its pce core name and the RetroPie name beetle-pce. core_version follows libretro.cpp:30 (v1.29.0). --- emulators/beetle_pce.yml | 21 ++++++------ emulators/mednafen_pce.yml | 66 +++++--------------------------------- 2 files changed, 20 insertions(+), 67 deletions(-) diff --git a/emulators/beetle_pce.yml b/emulators/beetle_pce.yml index c85c06e9..e58ae359 100644 --- a/emulators/beetle_pce.yml +++ b/emulators/beetle_pce.yml @@ -5,19 +5,22 @@ source: "https://github.com/libretro/beetle-pce-libretro" upstream: "https://mednafen.github.io/" profiled_date: "2026-03-24" source_commit: "b96c11e095b6a40a412d2da02766ae1c3f4fd539" -core_version: "v0.9.38.7" +core_version: "v1.29.0" display_name: "NEC - PC Engine / SuperGrafx / CD (Beetle PCE)" -cores: [mednafen_pce] +cores: [beetle_pce, mednafen_pce, pce, beetle-pce] systems: [nec-pc-engine] verification: existence notes: > - Libretro port of Mednafen's PCE-Accurate module. BIOS loaded from system - directory at CD-ROM load time via PCE_LoadCD() in mednafen/pce/pce.cpp:441-460. - Core option "pce_cdbios" selects which card image to use (default: System Card 3). - DetectGECD() auto-detects Games Express discs and switches to gexpress.pce. - Arcade Card mode (pce_arcadecard option, enabled by default) extends System Card 3 - with extra RAM mapping via SYSCARD_ARCADE enum. - No hash or size validation on BIOS load: file_open() then HuC_Load() reads data directly. + Libretro port of Mednafen's PCE module (libretro.cpp:30), with SuperGrafx + and CD support. The BIOS is loaded from the system directory at CD-ROM + load time via PCE_LoadCD() in mednafen/pce/pce.cpp:441-460, so HuCard + content runs without it. Core option "pce_cdbios" selects which card image + to use (default: System Card 3). DetectGECD() auto-detects Games Express + discs and switches to the pce.gecdbios setting, fixed to gexpress.pce. + Arcade Card mode (pce_arcadecard option, enabled by default) extends System + Card 3 with extra RAM mapping via the SYSCARD_ARCADE enum. + No hash or size validation on BIOS load: file_open() then HuC_Load() reads + the data directly. DetectSGXCD() reads sector data to decide SGX mode but uses the same BIOS files. files: diff --git a/emulators/mednafen_pce.yml b/emulators/mednafen_pce.yml index 9f039e2f..257a6892 100644 --- a/emulators/mednafen_pce.yml +++ b/emulators/mednafen_pce.yml @@ -1,60 +1,10 @@ -emulator: "Beetle PCE" -type: libretro -core_classification: community_fork -source: "https://github.com/libretro/beetle-pce-libretro" -upstream: "https://mednafen.github.io/" +emulator: "mednafen_pce" +type: alias +alias_of: "beetle_pce" profiled_date: "2026-03-24" -source_commit: "b96c11e095b6a40a412d2da02766ae1c3f4fd539" -core_version: "v0.9.38.7" +core_version: "v1.29.0" display_name: "NEC - PC Engine / SuperGrafx / CD (Beetle PCE)" -cores: [mednafen_pce, pce] -systems: [nec-pc-engine] -verification: existence -notes: > - Fork of Mednafen's pce module (accurate, with SuperGrafx and CD support). - Separate codebase from mednafen_pce_fast (mednafen/pce/ vs mednafen/pce_fast/). - BIOS loaded via PCE_LoadCD() at CD-ROM load time. Core option "pce_cdbios" - selects which card image to use (default: System Card 3). - DetectGECD() auto-detects Games Express discs and overrides to gexpress.pce. - Arcade Card mode (pce_arcadecard option, enabled by default) extends System - Card 3 with extra RAM mapping. - No hash or size validation on BIOS load. - Upstream pce module has configurable pce.cdbios/pce.gecdbios string settings, and - the 6-option dropdown is a libretro addition. - -files: - - name: "syscard3.pce" - description: "CD-ROM System Card 3.0 (Japan)" - required: true - source_ref: "libretro.cpp:1051-1052, mednafen/settings.cpp:40" - note: "Default value for pce_cdbios option." - - - name: "syscard2.pce" - description: "CD-ROM System Card 2.0 (Japan)" - required: false - source_ref: "libretro.cpp:1053-1054" - note: "pce_cdbios = 'System Card 2'." - - - name: "syscard1.pce" - description: "CD-ROM System Card 1.0 (Japan)" - required: false - source_ref: "libretro.cpp:1055-1056" - note: "pce_cdbios = 'System Card 1'." - - - name: "gexpress.pce" - description: "Games Express CD Card" - required: false - source_ref: "libretro.cpp:1057-1058, mednafen/settings.cpp:41, mednafen/pce/pce.cpp:373-411" - note: "pce_cdbios = 'Games Express' or auto-detected via DetectGECD()." - - - name: "syscard3u.pce" - description: "CD-ROM System Card 3.0 (US / TurboGrafx-CD)" - required: false - source_ref: "libretro.cpp:1059-1060" - note: "pce_cdbios = 'System Card 3 US'. Not in .info." - - - name: "syscard2u.pce" - description: "CD-ROM System Card 2.0 (US / TurboGrafx-CD)" - required: false - source_ref: "libretro.cpp:1061-1062" - note: "pce_cdbios = 'System Card 2 US'. Not in .info." +cores: + - mednafen_pce +note: "This core uses the same BIOS/firmware as beetle_pce. See emulators/beetle_pce.yml for details." +files: []