-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPQ1VGA
executable file
·59 lines (48 loc) · 1.26 KB
/
PQ1VGA
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
gamepath="/usr/share/games/PQ1VGA"
gameid="pq1sci"
tmplang="$LANG"
test "$LC_MESSAGES" != "" && tmplang="$LC_MESSAGES"
test "$LC_ALL" != "" && tmplang="$LC_ALL"
test "$LANGUAGE" != "" && tmplang="$LANGUAGE"
lang=`echo $tmplang|cut -d "_" -f 1`
case $lang in
en)
lang=gb
echo $tmplang | grep en_US &>/dev/null && lang=en
;;
de|fr|it|pt|es|se)
;;
*)
lang=gb
;;
esac
if [ ! -f $HOME/.scummvmrc ]; then
scummvmversion=`scummvm -v|grep ^ScummVM|awk '{print $2}'`
echo "[scummvm]" > $HOME/.scummvmrc
echo "versioninfo=$scummvmversion" >> $HOME/.scummvmrc
fi
grep "path=$gamepath" $HOME/.scummvmrc
if [ $? -ne 0 ]; then
echo "Dies ist ein Test"
cat >> $HOME/.scummvmrc << EOF
[$gameid]
description=Police Quest: In Pursuit of the Death Angel (SCI/DOS/English)
originalsaveload=false
fullscreen=false
path=$gamepath
prefer_digitalsfx=true
gameid=sci
native_fb01=false
language=en
sfx_volume=256
music_volume=256
platform=pc
guioptions=sndNoSpeech gameOption1 gameOption2 gameOption3 lang_English
EOF
fi
#force language because GOG version of PQ includes only english language files
lang=en
echo "Using language: $lang"
#scummvm -p$gamepath -q$lang -gadvmame2x -f $OPTIONS $gameid
scummvm -p$gamepath -q$lang -gadvmame2x $OPTIONS $gameid