From 07d4bc57846121cdf94ccc6b248c11047a44725f Mon Sep 17 00:00:00 2001 From: Ariel Scarpinelli Date: Mon, 31 Aug 2026 11:37:29 -0300 Subject: [PATCH] add lr-fake08 --- scriptmodules/libretrocores/lr-fake08.sh | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 scriptmodules/libretrocores/lr-fake08.sh diff --git a/scriptmodules/libretrocores/lr-fake08.sh b/scriptmodules/libretrocores/lr-fake08.sh new file mode 100644 index 0000000000..917ddbd7d4 --- /dev/null +++ b/scriptmodules/libretrocores/lr-fake08.sh @@ -0,0 +1,48 @@ +#!/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-fake08" +rp_module_desc="PICO-8 compatible engine - port of FAKE-08 for libretro" +rp_module_help="ROM Extensions: .p8 .p8.png\n\nCopy your roms to $romdir/pico8" +rp_module_licence="MIT https://raw.githubusercontent.com/jtothebell/fake-08/master/LICENSE.MD" +rp_module_repo="git https://github.com/jtothebell/fake-08.git master" +rp_module_section="exp" +rp_module_flags="!:\$__gcc_version:-lt:7" + +function sources_lr-fake08() { + gitPullOrClone +} + +function build_lr-fake08() { + make -C platform/libretro clean + make -C platform/libretro + md_ret_require="$md_build/platform/libretro/fake08_libretro.so" +} + +function install_lr-fake08() { + md_ret_files=( + 'platform/libretro/fake08_libretro.so' + 'LICENSE.MD' + 'README.md' + ) +} + +function configure_lr-fake08() { + mkRomDir "pico8" + + addEmulator 1 "$md_id" "pico8" "$md_inst/fake08_libretro.so" + addSystem "pico8" + + [[ "$md_mode" == "remove" ]] && return + + # disable retroarch built-in imageviewer so we can run .p8.png files + defaultRAConfig "pico8" "builtin_imageviewer_enable" "false" +}