Scripts
Script for Call of Duty 2
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
#Presentation
presentation "Call Of Duty 2" "Activision" "http://www.activision.com" "tef" "CallOfDuty2"
message "Un message d'erreur Directx sera affiché à la fin de l'installation du jeu, vous pouvez ignorer ce message."
Ask_For_cdrom
Check_cdrom "setup.exe"
mkdir -p $HOME/.PlayOnLinux/wineprefix/CallOfDuty2
cd $HOME/.PlayOnLinux/wineprefix/CallOfDuty2
select_prefixe "$(pwd)"
creer_prefixe
cd drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $CDROM ./d:
cd $CDROM
wine d:\setup.exe
simuler_reboot
creer_lanceur "CallOfDuty2" "Program Files/Activision/Call of Duty 2/" "CoD2SP_s.exe" "" "Call Of Duty 2 solo"
creer_lanceur "CallOfDuty2" "Program Files/Activision/Call of Duty 2/" "CoD2MP_s.exe" "" "Call Of Duty 2 - Multijoueur" "Cod2mp"
message "Installation terminée"
exit