diff --git a/ports/descent/Descent.sh b/ports/descent/Descent.sh index 3f0560e5dc..f4b47d54cd 100644 --- a/ports/descent/Descent.sh +++ b/ports/descent/Descent.sh @@ -23,7 +23,14 @@ GAME="d1x-rebirth" ASPECT_X=${ASPECT_X:-4} ASPECT_Y=${ASPECT_Y:-3} +# CD and set permissions cd $GAMEDIR +> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1 +rm -rf "$GAMEDIR/config/gamelog.txt" +$ESUDO chmod +x -R $GAMEDIR/* + +# Set config dir +bind_directories ~/.$GAME $GAMEDIR/config # Add some cheats if [ ! -f "./cheats.txt" ]; then diff --git a/ports/descent2/Descent 2.sh b/ports/descent2/Descent 2.sh index d35c6d2cec..617f449d0e 100644 --- a/ports/descent2/Descent 2.sh +++ b/ports/descent2/Descent 2.sh @@ -23,7 +23,14 @@ GAME="d2x-rebirth" ASPECT_X=${ASPECT_X:-4} ASPECT_Y=${ASPECT_Y:-3} +# CD and set permissions cd $GAMEDIR +> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1 +rm -rf "$GAMEDIR/config/gamelog.txt" +$ESUDO chmod +x -R $GAMEDIR/* + +# Set config dir +bind_directories ~/.$GAME $GAMEDIR/config # Add some cheats if [ ! -f "./cheats.txt" ]; then