Skip to content

Commit

Permalink
rvgl - Fix music
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Jul 19, 2024
1 parent 4cd1d52 commit 07e3b09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions engines/rvgl/assets/run-rvgl.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

create_relative_symlink () {
LD_PRELOAD="" local -r target=$1
LD_PRELOAD="" local -r symlink="$(echo "$target" | tr '[:upper:]' '[:lower:]')"
LD_PRELOAD="" ln -rsf "$target" "$symlink"
}

if ! [[ -z "${LUX_STEAM_DECK}" ]]; then
if [ ! -f profiles/deck/profile.ini ]; then
echo "Creating profile"
Expand Down Expand Up @@ -32,5 +38,11 @@ fi

LD_PRELOAD="" ln -rsf ./music ./redbook

pushd music
for file in *.ogg ; do
create_relative_symlink "$file"
done
popd

chmod +x rvgl.64
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:lib/lib64:lib" ./rvgl.64

0 comments on commit 07e3b09

Please sign in to comment.