blob: 2b5d38004f773705462a3430ace078a6737bf800 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# Code for forcing OpenGL backend taken from upstream start_RimWorld_openglfix.sh
FORCEGL=""
if which glxinfo | grep -q glxinfo ; then
OPENGL_VERSION=`glxinfo | grep "OpenGL version string:" | cut -d' ' -f 4`
if [[ (( $OPENGL_VERSION < 3.2 )) ]]; then
echo "Detected OpenGL version < 3.2, launching game with a fix"
FORCEGL=" -force-opengl"
fi
fi
cd /opt/rimworld
# LC_ALL: Apparently Unity has problems with non-english locales
# Also, the game binary needs to be in the same directory as the game data
LC_ALL=C ./RimWorldLinux $FORCEGL
|