fr

Source code for GOG.com - Ground Control 2

This script is signed by PlayOnLinux.
#!/bin/bash
# Date : (2011-12-03 20-32)
# Last revision : (2013-04-30 23-08)
# Wine version used : 1.3.36, 1.4.1
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Supposed to be "Gold" on WineHQ with 1.3.23, but I crash it with middle-click + drag
# Same for 1.3.27-rawinput2,
# very easily with 1.3.33
# couldn't crash it with 1.3.34-rawinput2
# 1.3.34 ok

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

GOGID="ground_control_2_operation_exodus"
PREFIX="GrndCtrl2_gog"
WORKING_WINE_VERSION="1.4.1"

TITLE="GOG.com - Ground Control 2"
SHORTCUT_NAME="Ground Control 2"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1016
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Massive Entertainment / Rebellion" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "dd1ae6e7ae1420bc52dc5327e974ea9e"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Wine_InstallFonts

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

# Helps at least when windowed
POL_Wine_X11Drv "GrabFullScreen" "Y"

# Remove the "beta DirectX version" warning upon first run
cat <<_EOFREG_ > "$POL_USER_ROOT/tmp/dxtested.reg"
[HKEY_LOCAL_MACHINE\Software\Massive Entertainment AB\Ground Control II]
"HardwareChecks"=dword:00000010
"HardwareCheckVersion"=dword:00000009
_EOFREG_
POL_Wine regedit "$POL_USER_ROOT/tmp/dxtested.reg"
rm "$POL_USER_ROOT/tmp/dxtested.reg"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "gcii.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Ground Control II/Manual.pdf"

POL_SetupWindow_Close
exit 0

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAlGAUo8ACgkQ5TH6yaoTykc47ACdGM1KhbQE5FVRTwQ0BO/obGUg
J/sAnijo9Iv4vghlBirTqi8EmdSzl9dd
=LwRQ
-----END PGP SIGNATURE-----
Date : 01 May 2013 01:23:59
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

1. dd1ae6e7ae1420bc52dc5327e974ea9e
Il n'y a rien à voir ici