Scripts

Script for Painkiller

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

presentation "Painkiller" "Dreamcatcher" "http://www.painkillergame.com/" "GNU_Raziel" "Painkiller"

Ask_For_cdrom
Check_cdrom "PainkillerSetup.exe"

TEMP="$HOME/.PlayOnLinux/tmp/Painkiller"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/Painkiller
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/Painkiller
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 "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
message "Veuillez monter le CDROM 2, puis cliquez sur valider."
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
message "Veuillez monter le CDROM 3, puis cliquez sur valider."
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"

Set_OS "winxp"
wine d:\PainkillerSetup.exe
message "Appuyez sur OK UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."

Set_Managed "On"
Set_DXGrab "On"

simuler_reboot
chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $CDROM ./d:
creer_lanceur "Painkiller" "Program\ Files/DreamCatcher/Painkiller/bin" "Painkiller.exe" "painkliller.xpm" "Painkiller & Battle Out Of Hell"

message "Installation terminée"
exit