#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
POL_SetupWindow_Init
POL_SetupWindow_presentation "Last Chaos" "Aeria Games" "http://lastchaos.aeriagames.com/" "Zoloom" "LastChaos"
select_prefixe "$REPERTOIRE/wineprefix/LastChaos"
POL_SetupWindow_prefixcreate
POL_SetupWindow_browse "Please select Last Chaos client" "Last Chaos USA"
THEFILE="$APP_ANSWER"
POL_SetupWindow_wait_next_signal "Downloading and Installing Last Chaos Client..." "Last Chaos USA"
wine "$THEFILE"
POL_SetupWindow_detect_exit
Set_SoundDriver "oss"
Set_OS "winxp"
POL_SetupWindow_make_shortcut "LastChaos" "AeriaGames/LastChaosUSA" "LC.exe" "" "Last Chaos"
Set_WineVersion_Assign "0.9.55" "Last Chaos"
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit