Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Legacy Of Kain : Defiance

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

if [ "$POL_LANG" == "fr" ]; then
LNG_WAIT_CP="Patientez pendant la préparation de l'installation..."
LNG_DX9_DL="Téléchargement de la mise a jour DirectX9.0c pour Wine..."
LNG_XINPUT_DL="Téléchargement de la mise a jour Xinput et XACT pour Wine..."
LNG_DX9_INSTALL="L'installation de la mise a jour DirectX9.0c pour Wine va débuter."
LNG_XINPUT_INSTALL="L'installation de la mise a jour Xinput et XACT pour Wine va débuter."
LNG_DEFIANCE_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation\ndu jeu sera terminée sous peine de devoir recommencer l'installation."
else
LNG_WAIT_CP="Wait while the installation is prepared..."
LNG_DX9_DL="Downloading Wine DirectX9.0c Update..."
LNG_XINPUT_DL="Downloading Wine Xinput and XACT Update..."
LNG_DX9_INSTALL="DirectX9.0c Update installation will begin."
LNG_DX9_INSTALL="Xinput and XACT Update installation will begin."
LNG_DEFIANCE_WAIT_END="Click on \"Next\" ONLY when the game installation\nis finished or you will have to redo the installation."
fi

cd $REPERTOIRE/tmp
rm *.jpg
wget $SITE/setups/lokd/left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "Legacy Of Kain - Defiance" "Eidos Interactive" "http://www.legacyofkain.com/" "GNU_Raziel" "LegacyOfKain-Defiance"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

select_prefixe "$REPERTOIRE/wineprefix/LegacyOfKain-Defiance/"
POL_SetupWindow_prefixcreate

TEMP="$REPERTOIRE/tmp/LegacyOfKain-Defiance"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $TEMP

cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:

POL_SetupWindow_wait_next_signal "$LNG_WAIT_CP" "Legacy Of Kain - Defiance"
cp -r $CDROM/* $TEMP
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun1.inf
## CD-ROM 2
POL_SetupWindow_cdrom
cp -r $CDROM/* $TEMP
chmod 777 $TEMP -R

if [ ! -e $REPERTOIRE/ressources/ ]; then
mkdir -p $REPERTOIRE/ressources/
fi
cd $REPERTOIRE/ressources/
if [ ! -e $REPERTOIRE/ressources/D3DX9_XX_dll_\(32Bit_All\).zip ]; then
POL_SetupWindow_download "$LNG_DX9_DL" "Legacy Of Kain - Defiance" "http://mulx.net/file_pol/D3DX9_XX_dll_(32Bit_All).zip"
fi

if [ ! -e $REPERTOIRE/ressources/X_XX_dll_\(32Bit_All\).zip ]; then
POL_SetupWindow_download "$LNG_XINPUT_DL" "Legacy Of Kain - Defiance" "http://mulx.net/file_pol/X_XX_dll_(32Bit_All).zip"
fi

cd $WINEPREFIX/drive_c/windows/temp/
unzip $REPERTOIRE/ressources/D3DX9_XX_dll_\(32Bit_All\).zip
POL_SetupWindow_message "$LNG_DX9_INSTALL" "Legacy of kain - Defiance"
Set_OS "winxp"
wine c:\\windows\\temp\\D3DX9_XX_dll_\(32Bit_All\)\\Install\\DXSETUP.exe
unzip $REPERTOIRE/ressources/X_XX_dll_\(32Bit_All\).zip
POL_SetupWindow_message "$LNG_XINPUT_INSTALL" "Legacy of kain - Defiance"
wine c:\\windows\\temp\\X_XX_dll_\(32Bit_All\)\\Install\\DXSETUP.exe

wine d:\\setup.exe
POL_SetupWindow_message "$LNG_WAIT_END" "Legacy of kain - Defiance"

POL_SetupWindow_reboot

chmod 777 $TEMP -R
rm $TEMP -R
rm -rf $WINEPREFIX/drive_c/windows/temp/*
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $CDROM ./d:

POL_SetupWindow_make_shortcut "LegacyOfKain-Defiance" "Program Files/Legacy of Kain - Defiance/" "defiance.exe" "LegacyOfKainDefiance.xpm" "Legacy Of Kain - Defiance"
POL_SetupWindow_Close
exit

Il n'y a rien à voir ici