Applications

Choose a category

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

Star Wars : Knights Of The Old Republic : The Sith Lords

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

#Verifier les dépendences
cfg_check

#Declaration des variables
CODENAME="SWkotor2"
REALNAME="StarWars : Knights Of The Old Republic : The Sith Lords"
EDITEUR="LucasArts/Obsidian"
WEBSITE="http://www.lucasarts.com/products/swkotor2/"
SCRIPTEUR="Omega13"

#Presentation
presentation "$REALNAME" "$EDITEUR" "$WEBSITE" "$SCRIPTEUR" "$CODENAME" 1 6

protection_warning

#Verification du CDROM
Ask_For_cdrom 2 6
Check_cdrom "Setup.exe"

#Préparation du prefix
TEMP="$HOME/.PlayOnLinux/tmp/SWKotor2"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/SWKotor2
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/SWKotor2
select_prefixe "$(pwd)"
creer_prefixe 3 6

#Préparation de l'installation
cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:

attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun1.inf
mv $TEMP/autorun.exe $TEMP/autorun1.exe
ask_mount_num 2
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun2.inf
mv $TEMP/autorun.exe $TEMP/autorun2.exe
ask_mount_num 3
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun3.inf
mv $TEMP/autorun.exe $TEMP/autorun3.exe
ask_mount_num 4
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"

#Preparation de Wine
Set_OS "winxp"
wine d:Setup.exe

Set_Managed "On"
Set_DXGrab "On"

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

chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $CDROM ./d:

creer_lanceur "SWKotor2" "Program Files/LucasArts/SWKotOR2" "swkotor2.exe" "SWKotor2.xpm" "StarWars : Knights Of The Old Republic : The Sith Lords"
creer_lanceur_expansion "SWKotor_Config" "Program Files/LucasArts/SWKotOR2" "swconfig.exe" "SWKotor_Config.xpm" "StarWars : Knights Of The Old Republic : The Sith Lords Configurator"

exit

Il n'y a rien à voir ici