#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"OnLive"
PREFIX=
"OnLive"
WORKING_WINE_VERSION=
"1.5.21"
POL_SetupWindow_Init
POL_Debug_Init
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"auto"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_SetupWindow_InstallMethod
"LOCAL, DOWNLOAD"
if
[
"$INSTALL_METHOD"
=
"DOWNLOAD"
];
then
cd
"$POL_System_TmpDir"
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
"OnLive_Setup.exe"
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_WaitBefore
"$TITLE"
POL_Wine
"$SETUP_EXE"
POL_Wine_WaitExit
"$TITLE"
fi
POL_SetupWindow_VMS
$GAME_VMS
POL_Wine_SetVideoDriver
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/OnLive"
POL_Shortcut
"OnLive.exe"
"$TITLE"
""
""
POL_SetupWindow_Close
exit