Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DICE emulator for machines without a CPU. #4048

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions platforms.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ crvision_fullname="CreatiVision"
daphne_exts=".daphne .ogv"
daphne_fullname="Daphne"

dice_exts=".zip .dmy"
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"

Expand Down
49 changes: 49 additions & 0 deletions scriptmodules/libretrocores/lr-dice.sh
Original file line number Diff line number Diff line change
@@ -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="exp"

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
}