Scripts

Script for Hidden and Dangerous Deluxe

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_HANDD_DL="Acquisition du jeu complet... (légalement)"
LNG_HANDD_WARNING_TITRE="Répertoire d'installation"
LNG_HANDD_WARNING="L'installation du jeu va commencer. Ne changez pas le chemin d'installation par défaut! Si vous choisissez un répertoire différent, les raccourcis ne fonctionneront pas."
LNG_HANDD_WARNING_BOUTON="Compris!"
LNG_HANDD_WARNING_TITRE2="Serveur de son OSS"
LNG_HANDD_WARNING2="Si votre ordinateur possède plusieurs cartes son, essayez de brancher vos haut-parleurs sur chacune d'entre elles. En effet, le serveur de son utilisé n'est pas celui habituel."
LNG_HANDD_WARNING_BOUTON2="Compris!"
RACCOURCI_EDITEUR="Hidden and Dangerous Deluxe : Editeur"
else
LNG_HANDD_DL="Getting the full game... (legally)"
LNG_HANDD_WARNING_TITRE="Installation directory"
LNG_HANDD_WARNING="The game is going to set up on your computer. Don't change the default installation directory! Otherwise the shortcuts won't work."
LNG_HANDD_WARNING_BOUTON="Understood!"
LNG_HANDD_WARNING_TITRE2="OSS sound server"
LNG_HANDD_WARNING2="If your computer has several sound cards, try plugging your speakers on each of them because the sound server used isn't the usual one."
LNG_HANDD_WARNING_BOUTON2="Understood!"
RACCOURCI_EDITEUR="Hidden and Dangerous Deluxe : Editor"
fi
presentation "Hidden and Dangerous Deluxe" "Illusion Softworks" "http://www.illusionsoftworks.com/games/" "Bugage" "HandD" 1 5
telecharger "$LNG_HANDD_DL" "http://mirrors-av.club-internet.fr/pub/games/nofrag/hiddenanddangerous/hddeluxe.exe" "" 2 5 1 "" 0 0
select_prefixe "$REPERTOIRE/wineprefix/HandD"
creer_prefixe 3 5
warning "$LNG_HANDD_WARNING" "$LNG_HANDD_WARNING_TITRE" 4 5 0 "" "$LNG_HANDD_WARNING_BOUTON"
wine hddeluxe.exe
rm hddeluxe.exe
Set_SoundDriver "oss"
warning "$LNG_HANDD_WARNING2" "$LNG_HANDD_WARNING_TITRE2" 5 5 0 "" "$LNG_HANDD_WARNING_BOUTON2"
creer_lanceur "HandD" "Program Files/Take2/Hidden and Dangerous Deluxe/bin" "hde.exe" "$REPERTOIRE/wineprefix/HandD/drive_c/windows/temp/113b_hde.0.xpm" "Hidden & Dangerous Deluxe"
creer_lanceur "HandD" "Program Files/Take2/Hidden and Dangerous Deluxe/bin" "iconfig.exe" "$REPERTOIRE/wineprefix/HandD/drive_c/windows/temp/113b_iconfig.0.xpm" "Hidden & Dangerous Deluxe : Configuration"
if [ -f "$REPERTOIRE/wineprefix/HandD/drive_c/Program Files/Take2/Hidden and Dangerous Deluxe/bin/hdedit.exe" ]
then
creer_lanceur "HandD" "Program Files/Take2/Hidden and Dangerous Deluxe/bin" "hdedit.exe" "$REPERTOIRE/wineprefix/HandD/drive_c/windows/temp/3550_shell32.0.xpm" "$RACCOURCI_EDITEUR"
fi
exit