Picotron on the Rocknix.
Picotron on the Rocknix.
|||||||||||||||||||||||||||||||||||||||
distribution/config/emulators/picotron.conf
|||||||||||||||||||||||||||||||||||||||
Add configuration for Picotron emulator (picotron)
SYSTEM_NAME="picotron"
SYSTEM_FULLNAME="Picotron"
SYSTEM_MANUFACTURER="Lexaloffle"
SYSTEM_RELEASE="2022"
SYSTEM_HARDWARE="game engine"
SYSTEM_PATH="/storage/roms/picotron"
SYSTEM_EXTENSION=".png"
SYSTEM_PLATFORM="picotron"
SYSTEM_THEME="picotron"
SYSTEM_WIKI_PATH="picotron"
|||||||||||||||||||||||||||||||||||||||
distribution/documentation/PER_DEVICE_DOCUMENTATION/ Only for these. SDM845|SM8250|SM8550|SM8650.
|||||||||||||||||||||||||||||||||||||||
Add Picotron emulator (picotron) support to documentation
After this.
|Lexaloffle|PICO-8 (pico-8)|2015|`pico-8`|.p8 .png|**pico-8:** pico8 (default)<br>**retroarch:** fake08<br>|
Add this.
|Lexaloffle|Picotron (picotron)|2022|`picotron`|.png|**picotron:** picotron (default)<br>|
|||||||||||||||||||||||||||||||||||||||
distribution/projects/ROCKNIX/packages/emulators/standalone/picotron/package.mk
|||||||||||||||||||||||||||||||||||||||
Create package.mk for Picotron emulator (picotron)
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)
PKG_NAME="picotron"
PKG_VERSION="17c0eeda3f83aba2183022f7f36d96174854ec33"
PKG_LICENSE="GPLv2"
PKG_SITE=""
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain SDL2"
PKG_LONGDESC="Picotron Fantasy Console"
PKG_TOOLCHAIN="manual"
if [ ! "${OPENGL}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
fi
if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/start_picotron.sh ${INSTALL}/usr/bin
chmod 0755 ${INSTALL}/usr/bin/start_picotron.sh
mkdir -p ${INSTALL}/usr/lib/autostart/common
cp ${PKG_DIR}/sources/autostart/common/* ${INSTALL}/usr/lib/autostart/common
chmod 0755 ${INSTALL}/usr/lib/autostart/common/*
}
|||||||||||||||||||||||||||||||||||||||
distribution/projects/ROCKNIX/packages/emulators/standalone/picotron/sources/start_picotron.sh
|||||||||||||||||||||||||||||||||||||||
Create start_picotron.sh to launch Picotron emulator (picotron)
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)
# Source predefined functions and variables
. /etc/profile
GAME_DIR="/storage/roms/picotron/"
case ${HW_ARCH} in
aarch64)
STATIC_BIN="picotron"
;;
esac
# I don't know this will work or not. integerscale shown on the start_pico8.sh.
INTEGER_SCALE=$(get_setting picotron.integerscale)
if [ "${INTEGER_SCALE}" = "1" ]
then
OPTIONS="${OPTIONS} -pixel_perfect 1"
fi
if [ -d "${GAME_DIR}/${HW_ARCH}" ]
then
LAUNCH_DIR="${GAME_DIR}/${HW_ARCH}"
else
LAUNCH_DIR="${GAME_DIR}"
fi
# store sdl_controllers in root directory so its shared across devices - will look to revisit this with controller refactor work
cp -f /usr/config/SDL-GameControllerDB/gamecontrollerdb.txt ${GAME_DIR}/sdl_controllers.txt
# mark the binary executable to cover cases where the user adding the binaries doesn't know or forgets.
chmod 0755 ${LAUNCH_DIR}/${STATIC_BIN}
set_kill set "-9 ${STATIC_BIN} start_picotron.sh"
${LAUNCH_DIR}/${STATIC_BIN} -home -root_path ${GAME_DIR} -joystick 0
|||||||||||||||||||||||||||||||||||||||
distribution/projects/ROCKNIX/packages/emulators/standalone/picotron/sources/autostart/common/010-picotron
|||||||||||||||||||||||||||||||||||||||
Add script to manage Picotron emulator (picotron) autostart behavior
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)
PICO_DIR="/storage/roms/picotron"
touch "${PICO_DIR}/Load-Picotron.png"
fi
|||||||||||||||||||||||||||||||||||||||
distribution/projects/ROCKNIX/packages/virtual/emulators/package.mk
|||||||||||||||||||||||||||||||||||||||
Add Picotron emulator (picotron) core to supported devices
From SDM845|SM8250|SM8550|SM8650. After this. [ "${ENABLE_32BIT}" == "true" ]
Add this picotron.
========================================
After these.
### Lexaloffle PICO-8
add_emu_core pico-8 pico-8 pico8 true
add_emu_core pico-8 retroarch fake08 false
add_es_system pico-8
Add these.
### Lexaloffle Picotron
case ${DEVICE} in
SDM845|SM8250|SM8550|SM8650)
add_emu_core picotron picotron picotron true
add_es_system picotron
;;
esac
|||||||||||||||||||||||||||||||||||||||