Skip to content
This repository
tree: 12bec936a3
Fetching contributors…

Cannot retrieve contributors at this time

file 62 lines (44 sloc) 1.823 kb
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 60 61 62
#!/bin/bash
# Date : (2012-02-03 21-27)
# Last revision : (2012-06-30 00-12)
# Wine version used : 1.4-rc2
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="broken_sword_3__the_sleeping_dragon"
PREFIX="BrokenSword3_gog"
WORKING_WINE_VERSION="1.4-rc2"

TITLE="Broken Sword III: The Sleeping Dragon (GoG release)"
SHORTCUT_NAME="Broken Sword 3: The Sleeping Dragon"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "09b2c88aab14000ae56461d84bef3407"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
POL_Call POL_Function_SetNativeExtension "pdf"

POL_Wine_WaitBefore "$TITLE"

POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "64"

# http://www.gog.com/en/forum/broken_sword_the_smoking_mirror/broken_sword_the_sleeping_dragon_freezes_on_startup
#cat <<'_EOFINI_' > "$POL_USER_ROOT/tmp/refresh60hz.reg"
#REGEDIT4
#
#[HKEY_LOCAL_MACHINE\Software\Microsoft\DirectDraw]
#"ForceRefreshRate"=dword:0000003c
#_EOFINI_
#POL_Wine regedit "$POL_USER_ROOT/tmp/refresh60hz.reg"
#rm "$POL_USER_ROOT/tmp/refresh60hz.reg"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "BSTSD.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" ""
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Broken Sword - The Sleeping Dragon/Readme.html"

POL_SetupWindow_Close

exit
Something went wrong with that request. Please try again.