From ecef7658682cf1f95db2c381ba82b94025b31d1f Mon Sep 17 00:00:00 2001 From: Zotn Date: Fri, 12 Jun 2026 16:01:32 +0200 Subject: [PATCH] sdl_controllers.txt handling improvement in start_pico8.sh This change would enable users to modify the sdl_controllers.txt file in GAME_DIR for custom keymapping if they wish to without needing to mess with the global configuration. Instead of forcibly rewriting the file, it would only copy it if it does not exist so modifications would be possible, and resetting to default would be a simple matter of manually removing the file. --- .../emulators/standalone/pico-8/sources/start_pico8.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/ROCKNIX/packages/emulators/standalone/pico-8/sources/start_pico8.sh b/projects/ROCKNIX/packages/emulators/standalone/pico-8/sources/start_pico8.sh index 52159c92078..efbf464de43 100644 --- a/projects/ROCKNIX/packages/emulators/standalone/pico-8/sources/start_pico8.sh +++ b/projects/ROCKNIX/packages/emulators/standalone/pico-8/sources/start_pico8.sh @@ -40,9 +40,9 @@ else 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 +cp --update=none /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_pico8.sh" -${LAUNCH_DIR}/${STATIC_BIN} -home -root_path ${GAME_DIR} -joystick 0 ${OPTIONS} "${CART}" \ No newline at end of file +${LAUNCH_DIR}/${STATIC_BIN} -home -root_path ${GAME_DIR} -joystick 0 ${OPTIONS} "${CART}"