Skip to content

Commit 7efdc0e

Browse files
authored
Merge pull request #3401 from LNRC/patch-1
Add libretro module script for TIC-80
2 parents 5943911 + 9086913 commit 7efdc0e

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

platforms.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ solarus_fullname="Solarus Engine"
223223
ti99_exts=".ctg"
224224
ti99_fullname="TI99"
225225

226+
tic80_exts=".tic .zip"
227+
tic80_fullname="TIC-80"
228+
226229
trs-80_exts=".dsk"
227230
trs-80_fullname="trs-80"
228231

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env bash
2+
3+
# This file is part of The RetroPie Project
4+
#
5+
# The RetroPie Project is the legal property of its developers, whose names are
6+
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
7+
#
8+
# See the LICENSE.md file at the top-level directory of this distribution and
9+
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
10+
#
11+
12+
rp_module_id="lr-tic80"
13+
rp_module_desc="TIC-80 fantasy computer - port for libretro"
14+
rp_module_help="ROM Extensions: .tic .zip\n\nCopy your roms to $romdir/tic80\n\n"
15+
rp_module_licence="MIT https://raw.githubusercontent.com/libretro/TIC-80/master/LICENSE"
16+
rp_module_repo="git https://github.com/libretro/TIC-80.git master"
17+
rp_module_section="exp"
18+
19+
function depends_lr-tic80() {
20+
getDepends cmake
21+
}
22+
23+
function sources_lr-tic80() {
24+
gitPullOrClone
25+
}
26+
27+
function build_lr-tic80() {
28+
rm -rf retropie
29+
mkdir -p retropie
30+
cd retropie
31+
cmake -DBUILD_PLAYER=OFF -DBUILD_SOKOL=OFF -DBUILD_SDL=OFF -DBUILD_DEMO_CARTS=OFF -DBUILD_LIBRETRO=ON ..
32+
make
33+
md_ret_require="$md_build/retropie/lib/tic80_libretro.so"
34+
}
35+
36+
37+
function install_lr-tic80() {
38+
md_ret_files=(
39+
'retropie/lib/tic80_libretro.so'
40+
'README.md'
41+
'LICENSE'
42+
)
43+
}
44+
45+
function configure_lr-tic80() {
46+
mkRomDir "tic80"
47+
ensureSystemretroconfig "tic80"
48+
addEmulator 1 "$md_id" "tic80" "$md_inst/tic80_libretro.so"
49+
addSystem "tic80" "TIC-80"
50+
}

0 commit comments

Comments
 (0)