Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (49 sloc) 2.364 kb
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
1 #!/bin/bash
2 # Date : (2012-01-07 21-26)
15bdce1 Use POL_Wine_WaitBefore instead of POL_SW_wait + POL_Wine_WaitExit
Pierre Etchemaite authored
3 # Last revision : (2012-05-24 20-07)
804a6f0 Revert Painkiller script edited by mistake
Pierre Etchemaite authored
4 # Wine version used : 1.3.36
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
5 # Distribution used to test : Debian Sid (Unstable)
ea667bc Replace address everywhere
Pierre Etchemaite authored
6 # Author : Pierre Etchemaite pe-pol@concept-micro.com
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
7 # Script licence : GPL v.2
8 # Program licence : Retail
9 # Depend :
10
11 [ -z "$PLAYONLINUX" ] && exit 0
12 source "$PLAYONLINUX/lib/sources"
13
d93d961 Use POL_GoG_setup in all GOG scripts.
Pierre Etchemaite authored
14 GOGID="painkiller"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
15 PREFIX="PainkillerBlack_gog"
804a6f0 Revert Painkiller script edited by mistake
Pierre Etchemaite authored
16 WORKING_WINE_VERSION="1.3.36"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
17
368c26a Remove TITLE from translatable strings
Pierre Etchemaite authored
18 TITLE="Painkiller Black Edition (GoG release)"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
19 SHORTCUT_NAME="Painkiller Black Edition"
20 SHORTCUT_EDITOR="$SHORTCUT_NAME - $(eval_gettext 'Editor')"
21 SHORTCUT_DS="$SHORTCUT_NAME - $(eval_gettext 'Dedicated Server')"
22
1e0510a Add resources to Painkiller Black Edition script
Pierre Etchemaite authored
23 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
24
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
25 POL_SetupWindow_Init
26 POL_Debug_Init
27
d93d961 Use POL_GoG_setup in all GOG scripts.
Pierre Etchemaite authored
28 POL_SetupWindow_presentation "$TITLE" "People Can Fly / Nordic Games" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
29
7ddc025 Create POL_Wine_PrefixCreate as late as possible in scripts
Pierre Etchemaite authored
30 POL_Call POL_GoG_setup "$GOGID" "04779d4d56e828daff8f82ba239d96a3" "7db45f6fb84caa50f4b4679a63f30418" "23f6f6b2078b5b909eaacff0a8238586"
31
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
32 POL_Wine_SelectPrefix "$PREFIX"
33 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
34
3b5ed86 Add a comment to explain SetNativeExtension "pdf"
Pierre Etchemaite authored
35 # Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
36 POL_Call POL_Function_SetNativeExtension "pdf"
37
15bdce1 Use POL_Wine_WaitBefore instead of POL_SW_wait + POL_Wine_WaitExit
Pierre Etchemaite authored
38 POL_Wine_WaitBefore "$TITLE"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
39
15bdce1 Use POL_Wine_WaitBefore instead of POL_SW_wait + POL_Wine_WaitExit
Pierre Etchemaite authored
40 POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
41
42
43 Set_OS winxp
44
45 POL_SetupWindow_VMS "64"
46
47 # Doesn't hurt ;)
48 POL_Wine_reboot
49
f292a71 Replace documentation shortcuts with calls to POL_Shortcut_Document
Pierre Etchemaite authored
50 LNG_EDITOR="$(eval_gettext 'Editor')"
51 LNG_DS="$(eval_gettext 'Dedicated server')"
52 POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_EDITOR}~${LNG_DS}" "~"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
53 SHORTCUTS="$APP_ANSWER"
54
55 POL_Shortcut "Painkiller.exe" "$SHORTCUT_NAME"
f292a71 Replace documentation shortcuts with calls to POL_Shortcut_Document
Pierre Etchemaite authored
56 POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Painkiller Black/Docs/Manual.pdf"
57 # C:/$PROGRAMFILES/GOG.com/Painkiller Black/Docs/ReadMe.txt
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
58
f292a71 Replace documentation shortcuts with calls to POL_Shortcut_Document
Pierre Etchemaite authored
59 if echo "$SHORTCUTS" | grep -q "$LNG_EDITOR"; then
60 POL_Shortcut "PainEditor.exe" "$SHORTCUT_EDITOR"
61 POL_Shortcut_Document "$SHORTCUT_EDITOR" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Painkiller Black/Docs/Pain Engine.pdf"
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
62 fi
63
f292a71 Replace documentation shortcuts with calls to POL_Shortcut_Document
Pierre Etchemaite authored
64 if echo "$SHORTCUTS" | grep -q "$LNG_DS"; then
f2c8dc1 Added a script for Painkiller: Black Edition
Pierre Etchemaite authored
65 POL_Shortcut "Painkiller.exe" "$SHORTCUT_DS" "" "-dedicated"
66 fi
67
68 POL_SetupWindow_Close
69
70 exit
Something went wrong with that request. Please try again.