Applications

Choose a category

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

Warcraft

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

source "$PLAYONLINUX/lib/sources"
cfg_check

#Declaration des variables
PREFIXNAME="Warcraft"
REALNAME="Warcraft"
REPINSTALL="Warcraft"
EDITEUR="Blizzard Entertainement"
WEBSITE="http://www.blizzard.com/"
SCRIPTEUR="Djabal"

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_DL="Téléchargement du jeu."
LNG_INSTALL="Installation"
LNG_INSTALL_MSG="Vous n'avez normalement pas besoin de configurer le son pour qu'il fonctionne."
else
LNG_DL="Download of the game."
LNG_INSTALL="Install"
LNG_INSTALL_MSG="You don't need (normally) set up the sound to make it work."
fi

presentation "${REALNAME}" "${EDITEUR}" "${WEBSITE}" "${SCRIPTEUR}" "${PREFIXNAME}"
select_prefixe "$REPERTOIRE/wineprefix/${PREFIXNAME}/"
dosprefixcreate

cd "${DOSPREFIX}/drive_c/"
mkdir "${REPINSTALL}"
cd "${REPINSTALL}"

telecharger "${LNG_DL}" "http://www.abandonware-utopia.com/pages/telechargement/jeux/Warcraft.zip"
unzip -u "Warcraft.zip"
rm "Warcraft.zip"

message "${LNG_INSTALL_MSG}" "${LNG_INSTALL}"

start_dos "SETUP.EXE"

creer_lanceur_dos "${PREFIXNAME}" "${REPINSTALL}" "WAR.EXE" "" "${REALNAME}"
exit