summarylogtreecommitdiffstats
path: root/pokemonrevolution
blob: 18716170e4f86ad207af45670dbbe9c6d615c07f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /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"

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