Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Caesar III

#!/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
 
POL_SetupWindow_Init "" ""
 
#Presentation
POL_SetupWindow_presentation "Caesar III" "Sierra" "http://www.caesar3.com/" "Toumeno" "Caesar3" 1 4
 
#Préparation de Wine
 
mkdir -p $REPERTOIRE/wineprefix/Caesar3
select_prefixe "$REPERTOIRE/wineprefix/Caesar3"
POL_SetupWindow_prefixcreate
 
 
#Configuration de Wine
Set_OS win98
Set_SoundDriver alsa
Set_Desktop On 1024 768
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
#Lancement de l'installeur
wine $CDROM/setup.exe
 
#Téléchargement du bon c3.exe (car le caesar3 livré avec certains PC est défectueux)Nécessite toujours le CD pour jouer
cd $REPERTOIRE/tmp
POL_SetupWindow_download "Téléchargement d'
un fichier/Downloading file" "Caesar III" "http://perso.wanadoo.fr/cesar.3/divers/c3.zip"
unzip -o c3.zip -d "
$REPERTOIRE/wineprefix/Caesar3/drive_c/SIERRA/Caesar3"
cd $REPERTOIRE/tmp
rm c3.zip
 
#Fin du code du jeu
#Création du lanceur
 
POL_SetupWindow_make_shortcut "
Caesar3" "SIERRA/Caesar3/" "c3.exe" "caesar3.png" "Caesar III"
 
 
POL_SetupWindow_reboot
 
if [ "
$POL_LANG" == "fr" ]
then
POL_SetupWindow_message "
Au cours d'une partie, n'oubliez pas de cliquer\nsur Options=>Affichage, et de régler la résolution à 1024x768 (maximum)."
 
else
 
POL_SetupWindow_message "
During a game, remember to set the resolution\nto 1024x768 (the maximum one) in Options=>Display"
 
fi
 
POL_SetupWindow_Close
 
exit
Il n'y a rien à voir ici