summarylogtreecommitdiffstats
path: root/pokemonrevolution
blob: 8b49838f134e30a419022b0e457701e814234533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
## helper script to run PRO.
GAMEDIR="GAMEDIRNAMESETBYPKGBUILD"
GAMEBINARY="GAMEBINARYNAMESETBYPKGBUILD"

## enforce opengl to workaround a bug that makes the game start in direct3d mode on linux -> "-force-glcore"
## https://docs.unity3d.com/Manual/OpenGLCoreDetails.html
#OPTIONS="-force-glcore -screen-fullscreen 0 -force-wayland"
OPTIONS=""

echo -e "--> \"${GAMEDIR}/${GAMEBINARY}\" ${OPTIONS} ${@}"
echo -e "..."

## to workaround an error that the game can't find some importtant files on some systems, we cd to the game root first
cd "${GAMEDIR}"

## start the game!
"${GAMEDIR}/${GAMEBINARY}" ${OPTIONS} ${@}

exit