Skip to content

Commit

Permalink
Merge pull request #631 from Slayer366/main
Browse files Browse the repository at this point in the history
Update Gmu Music Player launch script
  • Loading branch information
JeodC authored Sep 4, 2024
2 parents 9ff272f + 2f7b74c commit 6a2f304
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions ports/gmu.music.player/Gmu Music Player.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,31 @@ else
fi

source $controlfolder/control.txt
source $controlfolder/device_info.txt

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
get_controls

GAMEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/gmu-music-player"
#GAMEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/gmu-music-player"
GAMEDIR=/$directory/ports/gmu-music-player

$ESUDO chmod 777 -R $GAMEDIR/*

cd $GAMEDIR

$ESUDO chmod 666 /dev/tty0
$ESUDO chmod 666 /dev/tty1
$ESUDO chmod 666 /dev/uinput

# system
export LD_LIBRARY_PATH=$GAMEDIR/libs:$LD_LIBRARY_PATH
cd $GAMEDIR

export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

$ESUDO rm $GAMEDIR/log.txt
sleep 0.3
export LD_LIBRARY_PATH="$GAMEDIR/libs:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

$GPTOKEYB "gmu.bin" -c "$GAMEDIR/gmu.gptk" &
./gmu.bin -c gmu.settings.conf 2>&1 | tee -a $GAMEDIR/log.txt
./gmu.bin -c gmu.settings.conf

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
unset SDL_GAMECONTROLLERCONFIG
printf "\033c" > /dev/tty1
printf "\033c" > /dev/tty0

0 comments on commit 6a2f304

Please sign in to comment.