#!/bin/bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
PREFIX=
"BloodRayne1_gog"
WORKING_WINE_VERSION=
"1.4"
INSTALLBIN=
"setup_bloodrayne_1.exe"
TITLE=
"BloodRayne (GoG release)"
SHORTCUT_NAME=
"BloodRayne"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"Terminal Reality / Majesco"
"$URL"
"Pierre Etchemaite"
"$PREFIX"
POL_SetupWindow_question
"$(eval_gettext 'Do you want to download $TITLE from GOG.com?')"
"$TITLE"
[
"$APP_ANSWER"
=
"TRUE"
] && POL_Browser
"$URL"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
cd
$HOME
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run.')"
"$TITLE"
"$INSTALLBIN"
ARCHIVE=
"$APP_ANSWER"
POL_SetupWindow_wait
"$(eval_gettext 'Please wait while $TITLE is installed.')"
"$TITLE"
POL_Call
POL_Function_SetNativeExtension
"pdf"
POL_Wine
start
/unix
"$ARCHIVE"
|| POL_Debug_Fatal
"$(eval_gettext 'Error while installing archive')"
POL_Wine_WaitExit
"$TITLE"
Set_OS winxp
POL_SetupWindow_VMS
"64"
POL_Wine_X11Drv
"GrabFullScreen"
"Y"
mv
"$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/BloodRayne 1/video/Cutscene.exe"
"$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/BloodRayne 1/video/Cutscene.exe.disabled"
POL_Wine_reboot
POL_Shortcut
"rayne.exe"
"$SHORTCUT_NAME"
POL_Shortcut_Document
"$SHORTCUT_NAME"
"$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/BloodRayne 1/manual.pdf"
POL_SetupWindow_Close
exit