#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Dragon Age : Awakening"
PREFIX=
"daorigins"
rm
"$POL_USER_ROOT/tmp/*.jpg"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_checkexist()
{
if
[ ! -e
"$POL_USER_ROOT/wineprefix/$1"
];
then
POL_SetupWindow_message
"$(eval_gettext 'Game is not installed.')"
"$TITLE"
POL_SetupWindow_Close
exit
0
fi
}
POL_SetupWindow_checkexist
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_SetupWindow_InstallMethod
"DVD,STEAM,LOCAL"
if
[
"$INSTALL_METHOD"
==
"DVD"
];
then
POL_SetupWindow_message
"$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"data/ep1_campaign.rar"
POL_Wine
start
/unix
"$CDROM/Setup.exe"
POL_Wine_WaitExit
"$TITLE"
elif
[
"$INSTALL_METHOD"
==
"STEAM"
];
then
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"steam.exe"
steam:
//install/47730
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_SetupWindow_message
"$(eval_gettext 'This addon automatically patch the game to version 1.03')"
"$TITLE"
fi
POL_SetupWindow_Close
exit
0