forked from mattcaron/playonlinux
-
Notifications
You must be signed in to change notification settings - Fork 10
/
commandos_2_3-gog
59 lines (41 loc) · 1.87 KB
/
commandos_2_3-gog
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
#!/usr/bin/env playonlinux-bash
# Date : (2012-06-16 17-38)
# Last revision : (2013-12-13 01-17)
# Wine version used : 1.4.1
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite [email protected]
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="commandos_2_3"
PREFIX="Commandos_2_3_gog"
WORKING_WINE_VERSION="1.4.1"
TITLE="GOG.com - Commandos 2 and 3"
SHORTCUT_NAME1="Commandos 2: Men of Courage"
SHORTCUT_NAME2="Commandos 3: Destination Berlin"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1258
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Pyro Studios / Digital Game Factory" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" 3 "d6a7a1edbfbd67c299bd6a06ad12213d" "1edd8f72249d94e1990ec578ac49b1d1" "de6ec7365d8044bad1f6325d60103e66"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# fake sdbinst.exe
POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe"
POL_Call POL_GoG_install "/nogui"
# GoG work!
Set_OS winxp
POL_SetupWindow_VMS "32"
# Doesn't hurt ;)
POL_Wine_reboot
POL_Shortcut "comm2.exe" "$SHORTCUT_NAME1" "$SHORTCUT_NAME1.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME1" "$GOGROOT/Commandos 2 and 3/Commandos 2/Manual.PDF"
# C:\GOG Games\Commandos 2 and 3\Commandos 2\Readme.rtf
POL_Shortcut "Commandos3.exe" "$SHORTCUT_NAME2" "$SHORTCUT_NAME2.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME2" "$GOGROOT/Commandos 2 and 3/Commandos 3/manual.pdf"
# C:\GOG Games\Commandos 2 and 3\Commandos 3\Readme.rtf
POL_SetupWindow_Close
exit 0