Applications

Choose a category

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

Dark Messiah Of Might And Magic patch 1.02

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

cfg_check

if [ "$POL_LANG" == "fr" ]; then
LNG_DM_UPDATE_WELCOME="Bienvenue dans le script d'installation des patchs 10.1 et 1.02 pour Dark Messiah Of Might And Magic"
LNG_DM_UPDATE_INFO1="Je vais télécharger les patchs sur le site officiel.\nCette opération peut nécessiter du temps."
LNG_DM_UPDATE_DL="Patientez pendant le téléchargement du 1er patch...\nCette opération peut prendre quelques minutes selon la vitesse de votre connexion."
LNG_DM_UPDATE_DL2="Patientez pendant le téléchargement du 2ème patch...\nCette opération peut prendre quelques minutes selon la vitesse de votre connexion."
LNG_DM_UPDATE_FINISHED="Les patchs ont été correctement installés"
else
LNG_DM_UPDATE_WELCOME="Welcome in patches 1.01 and 1.02 Installation script for Dark Messiah Of Might And Magic"
LNG_DM_UPDATE_INFO1="I will download patches on the official website.\nThis opération may take time."
LNG_DM_UPDATE_DL="Wait while the first patch is downloading...\nThis operation can take time, depending of you connexion."
LNG_DM_UPDATE_DL2="Wait while the second patch is downloading...\nThis operation can take time, depending of you connexion."
LNG_DM_UPDATE_FINISHED="Patches installed successfully"
fi

cd $REPERTOIRE/tmp
rm *.jpg
wget $SITE/setups/darkmessiah/left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_message "$LNG_DM_UPDATE_WELCOME" "Dark Messiah Of Might And Magic"

POL_SetupWindow_checkexist()
{
if [ ! -e $REPERTOIRE/wineprefix/$1 ]; then
if [ "$POL_LANG" == "fr" ]; then
LNG_PREFIX_NOT_EXIST="Le jeu n'est pas installé."
else
LNG_PREFIX_NOT_EXIST="The Game is not installed."
fi
POL_SetupWindow_message_image "$LNG_PREFIX_NOT_EXIST" "Prefix Checker" "$PLAYONLINUX/themes/tango/warning.png"
exit
fi
}

POL_SetupWindow_checkexist "DarkMessiahOfMightAndMagic"

select_prefixe "$REPERTOIRE/wineprefix/DarkMessiahOfMightAndMagic/"

POL_SetupWindow_message "$LNG_DM_UPDATE_INFO1" "Dark Messiah Of Might And Magic"

cd $REPERTOIRE/tmp
POL_SetupWindow_download "$LNG_DM_UPDATE_DL" "Dark Messiah Of Might And Magic" "http://patches.ubi.com/dark_messiah/dark_messiah_1.01_us_uk_fr_it_sp.exe"
POL_SetupWindow_download "$LNG_DM_UPDATE_DL" "Dark Messiah Of Might And Magic" "http://patches.ubi.com/dark_messiah/dark_messiah_1.02_us_uk_fr_it_sp.exe"

wine dark_messiah_1.01_us_uk_fr_it_sp.exe
rm dark_messiah_1.01_us_uk_fr_it_sp.exe
wine dark_messiah_1.02_us_uk_fr_it_sp.exe
rm dark_messiah_1.02_us_uk_fr_it_sp.exe

POL_SetupWindow_message "$LNG_DM_UPDATE_FINISHED" "Dark Messiah Of Might And Magic"
POL_SetupWindow_Close
exit

Il n'y a rien à voir ici