#!/bin/bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
GOGID=
"kings_bounty_the_legend"
PREFIX=
"KingsBountyLegend_gog"
WORKING_WINE_VERSION=
"1.7.15"
TITLE=
"GOG.com - King's Bounty: The Legend"
SHORTCUT_NAME=
"King's Bounty: The Legend"
IMG_URL=http:
//upload
.wikimedia.org
/wikipedia/en/3/38/King
%27s_Bounty.jpg
get_image() {
URL=$1
wget $URL --output-document=
"$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert
"$REPERTOIRE/tmp/leftnotscaled.jpeg"
-scale 150x356\!
"$REPERTOIRE/tmp/left.jpeg"
echo
"$REPERTOIRE/tmp/left.jpeg"
}
get_gameexe() {
cd
$WINEPREFIX
/drive_c
&&
find
. -name kb.exe
}
install_configuration(){
Set_GLSL On
}
install_directx(){
cd
"$REPERTOIRE/ressources"
if
[ ! -e
"directx_aug2009_redist.exe"
];
then
fi
mkdir
"Directx"
cd
Directx
cabextract
"../directx_aug2009_redist.exe"
mkdir
"d3dx9"
cabextract -d
"d3dx9"
*d3dx9*x86*
cd
"d3dx9"
mv
*.dll
"$WINEPREFIX/drive_c/windows/system32"
cd
"$WINEPREFIX/drive_c/windows/temp"
cat
<< EOF > OGL.reg
[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]
"d3dx9_24"
=
"native"
"d3dx9_25"
=
"native"
"d3dx9_26"
=
"native"
"d3dx9_27"
=
"native"
"d3dx9_28"
=
"native"
"d3dx9_29"
=
"native"
"d3dx9_30"
=
"native"
"d3dx9_31"
=
"native"
"d3dx9_32"
=
"native"
"d3dx9_33"
=
"native"
"d3dx9_34"
=
"native"
"d3dx9_35"
=
"native"
"d3dx9_36"
=
"native"
"d3dx9_37"
=
"native"
"d3dx9_38"
=
"native"
"d3dx9_39"
=
"native"
"d3dx9_40"
=
"native"
"d3dx9_41"
=
"native"
"d3dx9_42"
=
"native"
EOF
regedit OGL.reg
cd
"$REPERTOIRE/ressources"
rm
-rf Directx
}
POL_SetupWindow_Init
POL_SetupWindow_SetID 1313
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"Katauri Interactive / 1C Publishing"
"http://www.gog.com/game/$GOGID"
"Simona Avornicesei"
"$PREFIX"
POL_Call
POL_GoG_setup
"$GOGID"
--alternate
"setup_$GOGID"
"1"
"9e21f612ed8a79394be80faa92dc28b0"
"1a7b4414f4a5ac7f17c4494dc927c7a0"
"0c230c27da36755136fabee4b1553294"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_GoG_install
"/nogui"
Set_OS win7
POL_SetupWindow_VMS
"64"
POL_SetupWindow_wait_next_signal
"Setting configuration properties"
"$TITLE installation"
POL_SetupWindow_detect_exit
POL_Call
POL_Install_d3dx9
POL_Call
POL_Install_d3dx9_36
PoL_Call POL_Install_d3dx10
PoL_Call POL_Install_d3dx11
POL_Wine_reboot
POL_Shortcut
"kb.exe"
"$SHORTCUT_NAME"
"gfw_high.ico"
""
"Game;StrategyGame;"
POL_SetupWindow_Close
exit
0