From 8a498aa92864fd340376e46b3c586a77fdf3b864 Mon Sep 17 00:00:00 2001 From: Ken Mitton Date: Wed, 12 Mar 2025 11:11:40 -0400 Subject: [PATCH] Add DICE emulator for machines without a CPU --- platforms.cfg | 6 +++- scriptmodules/libretrocores/lr-dice.sh | 49 ++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 scriptmodules/libretrocores/lr-dice.sh diff --git a/platforms.cfg b/platforms.cfg index d6839e42a6..2b854abfc1 100644 --- a/platforms.cfg +++ b/platforms.cfg @@ -13,7 +13,7 @@ amstradcpc_fullname="Amstrad CPC" apple2_exts=".po .dsk .nib" apple2_fullname="Apple II" -arcade_exts=".7z .cue .fba .iso .zip" +arcade_exts=".7z .cue .dmy .fba .iso .zip" arcade_fullname="Arcade" arcadia_exts=".bin .zip" @@ -60,6 +60,10 @@ crvision_fullname="CreatiVision" daphne_exts=".daphne .ogv" daphne_fullname="Daphne" +dice_exts=".dmy .zip" +dice_fullname="DICE" +dice_platform="arcade" + dragon32_exts=".bin .cas .wav .bas .asc .dmk .jvc .os9 .dsk .vdk .rom .ccc .sna" dragon32_fullname="Dragon 32" diff --git a/scriptmodules/libretrocores/lr-dice.sh b/scriptmodules/libretrocores/lr-dice.sh new file mode 100644 index 0000000000..7574494b3d --- /dev/null +++ b/scriptmodules/libretrocores/lr-dice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash + +# This file is part of The RetroPie Project +# +# The RetroPie Project is the legal property of its developers, whose names are +# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. +# +# See the LICENSE.md file at the top-level directory of this distribution and +# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md +# + +rp_module_id="lr-dice" +rp_module_desc="Discrete Integrated Circuit Emulator for machines without a CPU - DICE core for libretro" +rp_module_help="ROM Extensions: .zip .dmy\n\nCopy your DICE TTL roms to either $romdir/arcade or $romdir/dice" +rp_module_licence="GPL3 https://raw.githubusercontent.com/mittonk/dice-libretro/main/LICENSE.txt" +rp_module_repo="git https://github.com/mittonk/dice-libretro.git main" +rp_module_section="opt" + +function depends_lr-dice() { + getDepends zlib1g-dev +} + +function sources_lr-dice() { + gitPullOrClone +} + +function build_lr-dice() { + make clean + make + md_ret_require="$md_build/dice_libretro.so" +} + +function install_lr-dice() { + md_ret_files=( + 'README.md' + 'dice_libretro.so' + 'LICENSE.txt' + ) +} + +function configure_lr-dice() { + local system + for system in arcade dice; do + mkRomDir "$system" + defaultRAConfig "$system" + addEmulator 0 "$md_id" "$system" "$md_inst/dice_libretro.so" + addSystem "$system" + done +}