RUFFLE: fixed wrapper and inject command to inject it
Some checks are pending
Build RetroDECK / Build_RetroDECK (push) Waiting to run
Build RetroDECK / GitHub-publish (push) Blocked by required conditions
Build RetroDECK / Automated_Tests (push) Blocked by required conditions

This commit is contained in:
XargonWan 2025-02-02 13:41:25 +09:00
parent 440806f899
commit f722e256ed
2 changed files with 10 additions and 3 deletions

View file

@ -2,15 +2,21 @@
source /app/libexec/global.sh source /app/libexec/global.sh
arg="$@"
log i "Ruffle is running: $arg"
create_dir "$saves_folder/ruffle" create_dir "$saves_folder/ruffle"
static_invoke="--config /var/data/ruffle \ static_invoke="--config /var/data/ruffle --save-directory $saves_folder/ruffle --fullscreen"
--save-directory "$saves_folder/ruffle" \
--fullscreen"
#Check if Steam Deck in Desktop Mode #Check if Steam Deck in Desktop Mode
if [[ $(check_desktop_mode) == "true" ]]; then if [[ $(check_desktop_mode) == "true" ]]; then
log d "Running Ruffle in Desktop Mode"
log d "ruffle --graphics vulkan $static_invoke $@"
ruffle --graphics vulkan $static_invoke "$@" ruffle --graphics vulkan $static_invoke "$@"
else else
log d "Running Ruffle in Desktop Mode"
log d "ruffle --graphics gl --no-gui $static_invoke $@"
ruffle --graphics gl --no-gui $static_invoke "$@" ruffle --graphics gl --no-gui $static_invoke "$@"
fi fi

View file

@ -47,3 +47,4 @@ sudo cp -vfr "tools" "$app"
sudo cp -vfr "retrodeck.sh" "$app/bin/" sudo cp -vfr "retrodeck.sh" "$app/bin/"
sudo cp -vfr "functions/"** "$app/libexec/" sudo cp -vfr "functions/"** "$app/libexec/"
sudo cp -vfr "config/gzdoom/gzdoom.sh" "$app/bin/" sudo cp -vfr "config/gzdoom/gzdoom.sh" "$app/bin/"
sudo cp -vfr "config/ruffle/ruffle-rdwrapper.sh" "$app/bin/"