forked from mattcaron/playonlinux
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intro doesn't seem to have all sounds, need investigation
- Loading branch information
Pierre Etchemaite
committed
Apr 26, 2012
1 parent
8eecbd3
commit 4a2e9d7
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
# Date : (2012-04-26 23-18) | ||
# Last revision : (2012-04-26 23-44) | ||
# Wine version used : 1.4-dos_support_0.3 | ||
# 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="gabriel_knight_sins_of_the_fathers" | ||
PREFIX="GabrielKnight1_gog" | ||
WORKING_WINE_VERSION="1.4-dos_support_0.3" | ||
|
||
TITLE="Gabriel Knight - Sins of the Fathers (GoG release)" | ||
SHORTCUT_NAME="Gabriel Knight 1: Sins of the Fathers" | ||
|
||
#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_Debug_Init | ||
|
||
POL_SetupWindow_presentation "$TITLE" "Sierra / Activision" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" | ||
|
||
POL_Call POL_GoG_setup "$GOGID" "80cea7e9226db65085f63bcd189f9196" | ||
|
||
POL_Wine_SelectPrefix "$PREFIX" | ||
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" | ||
|
||
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE" | ||
|
||
# Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix | ||
POL_Call POL_Function_SetNativeExtension "pdf" | ||
|
||
POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" | ||
|
||
POL_Wine_WaitExit "$TITLE" | ||
|
||
cat <<'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg" | ||
auto_mount=false | ||
dosbox_memsize=8 | ||
cpu_cycles=max | ||
_EOFCFG_ | ||
[ "$POL_OS" = "Linux" ] && echo "render_scaler=hq2x" >> "$WINEPREFIX/playonlinux_dos.cfg" | ||
|
||
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat" | ||
imgmount D "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Gabriel Knight/GK1.gog" -t iso | ||
_EOFAE_ | ||
|
||
POL_ExtractIcon "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Gabriel Knight/gfw_high.ico" "$POL_USER_ROOT/icones/32/$SHORTCUT_NAME" | ||
POL_ExtractBiggestIcon "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Gabriel Knight/gfw_high.ico" "$POL_USER_ROOT/icones/full_size/$SHORTCUT_NAME" | ||
POL_Shortcut "SIERRA.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" | ||
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Gabriel Knight/Manual.pdf" | ||
# C:\Program Files\GOG.com\Gabriel Knight\README.txt | ||
# C:\Program Files\GOG.com\Gabriel Knight\Customer_support.htm | ||
|
||
POL_SetupWindow_Close | ||
|
||
exit |