From 54902df0508a5760d07a0b491a066ac5aa30d8a8 Mon Sep 17 00:00:00 2001 From: fewtarius Date: Wed, 7 Feb 2024 17:18:07 +0000 Subject: [PATCH] Vita3k start script should sync configuration from /usr/config to catch any changes without overwriting existing settings. --- .../standalone/vita3k-sa/scripts/start_vita3k.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/emulators/standalone/vita3k-sa/scripts/start_vita3k.sh b/packages/emulators/standalone/vita3k-sa/scripts/start_vita3k.sh index 7f0f3c88a..df601ef14 100644 --- a/packages/emulators/standalone/vita3k-sa/scripts/start_vita3k.sh +++ b/packages/emulators/standalone/vita3k-sa/scripts/start_vita3k.sh @@ -9,13 +9,11 @@ jslisten set "-9 Vita3K" #Check if vita3k folder exists in /storage/.config/vita3k if [ ! -d "/storage/.config/vita3k" ]; then mkdir -p "/storage/.config/vita3k" - cp -r "/usr/config/vita3k" "/storage/.config/" fi -if [ ! -d "/storage/.config/vita3k/lang/user" ] -then - mkdir -p "/storage/.config/vita3k/lang/user" -fi +#Make sure we sync any changes from /storage/.config so new features will be enabled +#without overwriting existing settings. +rsync -ah --update /usr/config/vita3k/* /storage/.config/vita3k 2>/dev/null #Check if vita3k folder exists in /storage/roms/psvita if [ ! -d "/storage/roms/psvita/vita3k" ]; then