Scripts

Script for Grand Theft Auto : Vice City

#!/bin/bash

#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Charger les librairies
source "$PLAYONLINUX/lib/sources"

#Verifier les dépendences
cfg_check

#Presentation
presentation "Grand Theft Auto : Vice City" "Rockstar Game" "http://www.rockstargames.com/grandtheftauto/" "parox" "GTAViceCity" 1 3

#Cette partie contiendra le code du jeu.
#Regardez mon deuxieme post pour apprendre a remplir cette partie

mkdir -p $REPERTOIRE/wineprefix/GTAViceCity
select_prefixe "$REPERTOIRE/wineprefix/GTAViceCity"
creer_prefixe 2 3

Ask_For_cdrom
Check_cdrom "setup.exe" 3 3

wine $CDROM/setup.exe

#Fin du code du jeu
#Création du lanceur

creer_lanceur "GTAViceCity" "Program Files/Rockstar Games/Grand Theft Auto Vice City" "gta-vc.exe"

end_install
exit