#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Dark Messiah Of Might And Magic" "Arkane Studios" "http://www.mightandmagic.com/fr" "GNU_Raziel" "DarkMessiahOfMightAndMagic" 1 6
if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_GDI_DL="Téléchargement de gdiplus..."
LNG_DX9_DL="Téléchargement de la mise a jour DirectX9.0c pour Wine..."
LNG_DX9_INSTALL="L'installation de la mise a jour DirectX9.0c pour Wine va débuter."
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
else
LNG_GDI_DL="Downloading gdiplus..."
LNG_DX9_DL="Downloading Wine DirectX9.0c Update..."
LNG_DX9_INSTALL="DirectX9.0c Update installation will begin."
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
fi
Ask_For_cdrom 2 6
Check_cdrom "Disk1/setup.exe"
mkdir -p $REPERTOIRE/wineprefix/DarkMessiahOfMightAndMagic
cd $REPERTOIRE/wineprefix/DarkMessiahOfMightAndMagic
select_prefixe "$(pwd)"
creer_prefixe 3 6
cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
ln -sf $CDROM ./d:
Set_OS "winxp"
fonts_to_prefixe
wine d:\\Disk1\\setup.exe
message "$LNG_WAIT_END" "" 6 6
Set_Managed "On"
Set_DXGrab "On"
Set_GLSL "On"
simuler_reboot
rm -rf $WINEPREFIX/drive_c/windows/temp/*
creer_lanceur "DarkMessiahOfMightAndMagic" "Program Files/Ubisoft/Dark Messiah of Might and Magic" "mm.exe" "DarkMessiahOfMightAndMagic.xpm" "Dark Messiah Of Might And Magic"
end_install
exit