Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Built from https://github.com/alexbatalov/fallout2-ce
- PORTNAME="Fallout 2"
- export HOME=/root
- XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
- if [ -d "/opt/system/Tools/PortMaster/" ]; then
- controlfolder="/opt/system/Tools/PortMaster"
- elif [ -d "/opt/tools/PortMaster/" ]; then
- controlfolder="/opt/tools/PortMaster"
- elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
- controlfolder="$XDG_DATA_HOME/PortMaster"
- else
- controlfolder="/roms/ports/PortMaster"
- fi
- SHDIR=$(dirname "$0")
- source $controlfolder/control.txt
- get_controls
- CUR_TTY=/dev/tty0
- $ESUDO chmod 666 $CUR_TTY
- GAMEDIR="$SHDIR/fallout2"
- cd "$GAMEDIR"
- echo "--directory=$directory---,HOTKEY=$HOTKEY--"
- for f in data critter.dat master.dat patch000.dat; do
- if [[ ! -e "$f" ]]; then
- echo "Missing file: $f" > $CUR_TTY
- echo "Missing file: $f" >> ./log.txt
- sleep 5
- $ESUDO systemctl restart oga_events &
- printf "\033c" >> $CUR_TTY
- exit 1
- fi
- done
- $ESUDO chmod 666 /dev/uinput
- export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
- echo "./fallout2.gptk.$ANALOGSTICKS" >> ./log.txt
- $GPTOKEYB "fallout2-ce" -c "./fallout2.gptk.$ANALOGSTICKS" -hotkey back &
- if [[ $whichos == *"ArkOS"* ]]; then
- LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.10.0 ./fallout2-ce 2>&1 | tee -a ./log.txt
- else
- ./fallout2-ce 2>&1 | tee -a ./log.txt
- fi
- $ESUDO kill -9 $(pidof gptokeyb)
- $ESUDO systemctl restart oga_events &
- printf "\033c" >> /dev/tty0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement