Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (57 sloc) 2.418 kb
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
1 #!/bin/bash
2 # Date : (2012-04-26 23-18)
67a2dd7 Upgrade all dos script to 1.4-dos_support_0.5
Pierre Etchemaite authored
3 # Last revision : (2012-06-06 21-05)
4 # Wine version used : 1.4-dos_support_0.5
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
5 # Distribution used to test : Debian Sid (Unstable)
6 # Author : Pierre Etchemaite pe-pol@concept-micro.com
7 # Script licence : GPL v.2
8 # Program licence : Retail
df1d036 Gabriel Knight 1: add comment about Timidity daemon for MIDI music
Pierre Etchemaite authored
9 # Depend : Timidity daemon on port midi 128:0 (recommended)
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
10
11 [ -z "$PLAYONLINUX" ] && exit 0
12 source "$PLAYONLINUX/lib/sources"
13
14 GOGID="gabriel_knight_sins_of_the_fathers"
15 PREFIX="GabrielKnight1_gog"
67a2dd7 Upgrade all dos script to 1.4-dos_support_0.5
Pierre Etchemaite authored
16 WORKING_WINE_VERSION="1.4-dos_support_0.5"
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
17
18 TITLE="Gabriel Knight - Sins of the Fathers (GoG release)"
19 SHORTCUT_NAME="Gabriel Knight 1: Sins of the Fathers"
20
7cd3b86 Add more resources to Gabriel Knight 1 script
Pierre Etchemaite authored
21 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
22
23 POL_SetupWindow_Init
24 POL_Debug_Init
25
26 POL_SetupWindow_presentation "$TITLE" "Sierra / Activision" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
27
28 POL_Call POL_GoG_setup "$GOGID" "80cea7e9226db65085f63bcd189f9196"
29
30 POL_Wine_SelectPrefix "$PREFIX"
31 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
32
33 # Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
34 POL_Call POL_Function_SetNativeExtension "pdf"
35
15bdce1 Use POL_Wine_WaitBefore instead of POL_SW_wait + POL_Wine_WaitExit
Pierre Etchemaite authored
36 POL_Wine_WaitBefore "$TITLE"
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
37
15bdce1 Use POL_Wine_WaitBefore instead of POL_SW_wait + POL_Wine_WaitExit
Pierre Etchemaite authored
38 POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
39
40 cat <<'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
b8f570c DOSBox: replace auto_mount=false with manual_mount=true
Pierre Etchemaite authored
41 manual_mount=true
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
42 dosbox_memsize=8
97e0211 Gabriel Knight 1: force cpu_core to normal
Pierre Etchemaite authored
43 cpu_core=normal
64f3255 Gabriel Knight 1: update for 1.4-dos_support_0.4; limit cycles to 10000
Pierre Etchemaite authored
44 cpu_cycles=10000
0e3d1f4 Gabriel Knight 1: add default midi setup
Pierre Etchemaite authored
45 mixer_prebuffer=20
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
46 _EOFCFG_
0e3d1f4 Gabriel Knight 1: add default midi setup
Pierre Etchemaite authored
47 if [ "$POL_OS" = "Linux" ]; then
48 # use pmidi -l or aconnect -o list to check your (emulated) midi device
49 # 128:0 is just default software emulation port (usually Timidity)
50 cat <<-'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
51 render_scaler=hq2x
52 midi_mididevice=alsa
53 midi_midiconfig=128:0
54 _EOFCFG_
55 fi
9ea36af Gabriel Knight 1: Fix typo
Pierre Etchemaite authored
56 if [ "$POL_OS" = "Mac" ]; then
0e3d1f4 Gabriel Knight 1: add default midi setup
Pierre Etchemaite authored
57 cat <<-'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
58 midi_mididevice=coreaudio
59 _EOFCFG_
60 fi
4a2e9d7 Add Gabriel Knight 1 script
Pierre Etchemaite authored
61
62 cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
63 imgmount D "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Gabriel Knight/GK1.gog" -t iso
64 _EOFAE_
65
66 POL_Shortcut "SIERRA.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" ""
67 POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Gabriel Knight/Manual.pdf"
68 # C:\Program Files\GOG.com\Gabriel Knight\README.txt
69 # C:\Program Files\GOG.com\Gabriel Knight\Customer_support.htm
70
71 POL_SetupWindow_Close
72
73 exit
Something went wrong with that request. Please try again.