#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"The Witcher 2 : Assassins of Kings"
SHORTCUT_NAME=
"The Witcher 2 : Assassins of Kings"
SHORTCUT_NAME2=
"The Witcher 2 : Assassins of Kings (Configuration)"
PREFIX=
"witcher2"
EDITOR=
"CDProjekt"
AUTHOR=
"GNU_Raziel"
WORKING_WINE_VERSION=
"2.22"
GAME_VMS=
"512"
STEAM_ID=
"20920"
POL_SetupWindow_Init
POL_SetupWindow_SetID 883
POL_Debug_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"x86"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_SetupWindow_InstallMethod
"DVD,STEAM,LOCAL"
if
[
"$INSTALL_METHOD"
==
"STEAM"
];
then
POL_Call
POL_Install_steam
POL_Call
POL_Install_steam_flags
"$STEAM_ID"
POL_Shortcut
"steam.exe"
"$SHORTCUT_NAME"
"$SHORTCUT_NAME.png"
"steam://rungameid/$STEAM_ID"
"Game;RolePlaying;"
POL_Shortcut
"steam.exe"
"Steam ($SHORTCUT_NAME)"
""
""
"Game;"
fi
POL_Call
POL_Install_vcrun2010
POL_Call
POL_Install_dxfullsetup
POL_Call
POL_Install_dotnet40
POL_SetupWindow_VMS
$GAME_VMS
POL_Wine_Direct3D
"UseGLSL"
"disabled"
POL_Wine_SetVideoDriver
if
[
"$INSTALL_METHOD"
==
"DVD"
];
then
POL_SetupWindow_message
"$(eval_gettext 'Please insert game media into your disk drive')"
"$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"witcher2.ico"
cd
"$WINEPREFIX"
/dosdevices
ln
-sf
"$CDROM"
p:
POL_Wine
start
/unix
"$CDROM"
/setup
.exe
POL_SetupWindow_message
"$(eval_gettext 'When the game setup will ask for next disk\nclick on "
Forward
"')"
"$TITLE"
POL_Wine
eject
POL_SetupWindow_message
"$(eval_gettext 'Please insert nest media into your disk drive')"
"$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"data3.cab"
cd
"$WINEPREFIX/dosdevices"
rm
.
/p
:
ln
-sf
"$CDROM"
p:
POL_Wine_WaitExit
"$TITLE"
elif
[
"$INSTALL_METHOD"
==
"STEAM"
];
then
POL_SetupWindow_message
"$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')"
"$TITLE"
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"steam.exe"
steam:
//install/
$STEAM_ID
POL_Wine_WaitExit
"$TITLE"
else
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run')"
"$TITLE"
SETUP_EXE=
"$APP_ANSWER"
POL_Wine
start
/unix
"$SETUP_EXE"
POL_Wine_WaitExit
"$TITLE"
fi
if
[
"$INSTALL_METHOD"
!=
"STEAM"
];
then
POL_Shortcut
"witcher2.exe"
"$SHORTCUT_NAME"
"$SHORTCUT_NAME.png"
""
"Game;RolePlaying;"
fi
POL_Shortcut
"Configurator.exe"
"$SHORTCUT_NAME2"
"$SHORTCUT_NAME.png"
""
"Game;RolePlaying;"
POL_SetupWindow_Close
exit
0