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

presentation "Legacy Of Kain : Defiance" "Eidos Interactive" "http://www.legacyofkain.com/" "GNU_Raziel" "LegacyOfKainDefiance" 1 9

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; 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 du 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 is finished or you will have to redo the installation."
fi

Ask_For_cdrom 2 9
Check_cdrom "setup.exe"

TEMP="$HOME/.PlayOnLinux/tmp/LegacyOfKainDefiance"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/LegacyOfKainDefiance
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/LegacyOfKainDefiance
select_prefixe "$(pwd)"
creer_prefixe

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

attendre "$LNG_WAIT_CP" "cp -r $CDROM/* $TEMP" "" 3 9 1 "" 1
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun1.inf
ask_mount_num 2
attendre "$LNG_WAIT_CP" "cp -r $CDROM/* $TEMP" "" 4 9 1 "" 1
chmod 777 $TEMP -R

cd $REPERTOIRE/tmp/
if [ ! -e $REPERTOIRE/tmp/D3DX9_dll_update.zip ]; then
telecharger "$LNG_DX9_DL" http://www.threelights.de/page/projects/d3dx9_xx_dll_files/D3DX9_dll_update.zip "" 5 9
fi
if [ ! -e $REPERTOIRE/tmp/X_dll_update.zip ]; then
telecharger "$LNG_XINPUT_DL" http://www.threelights.de/page/projects/d3dx9_xx_dll_files/X_dll_update.zip "" 6 9
fi

cd $WINEPREFIX/drive_c/windows/temp/
unzip $REPERTOIRE/tmp/D3DX9_dll_update.zip
unzip $REPERTOIRE/tmp/X_dll_update.zip
message "$LNG_DX9_INSTALL" "" 7 9
Set_OS "winxp"
wine c:\\windows\\temp\\D3DX9_dll_update\\Install\\DXSETUP.exe
message "$LNG_XINPUT_INSTALL" "" 8 9
wine c:\\windows\\temp\\X_dll_update\\Install\\DXSETUP.exe

wine d:\\setup.exe
message "$LNG_DEFIANCE_WAIT_END" "" 9 9


Set_Managed "On"
Set_DXGrab "On"
Set_GLSL "On"

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

creer_lanceur "LegacyOfKainDefiance" "Program Files/Legacy of Kain - Defiance/" "defiance.exe" "LegacyOfKainDefiance.xpm" "Legacy Of Kain - Defiance"

end_install
exit