Du bist hier    Unterstützte Software    Star Wars: Battlefront nl sv ru pl es fr en

Star Wars: Battlefront

Informations

Creator Nachricht
Quentin PÂRIS
Admin

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 9831
Wine: System

Feedbacks

Source code

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

cfg_check

#Presentation

if [ "$POL_LANG" == "fr" ];then
LNG_PROTECT="Attention : La protection CD ou DVD de ce jeu ne marche pas correctment avec wine.\nVous ne pourrez donc pas jouer à ce jeu sans désactiver cette protection.\nPlayOnLinux ne pourra être tenu reponsable de l'utilisation d'un tel patch"
else
LNG_PROTECT="Be carreful : The CD or DVD protection of this game doesn't work correctly with wine.\nYou will nor be able to play this game without deactiving this protection.\nPlayOnLinux can't be responsible of your utilization of these patch."
fi 

POL_SetupWindow_Init

TITLE="Star Wars : BattleFront"
PREFIXE_="StarWars_Battlefront"
POL_SetupWindow_presentation "$TITLE" "LucasArts" "http://www.lucasarts.com" "Tinou" "$PREFIXE_" 1 8

POL_SetupWindow_message "$LNG_PROTECT" 

POL_SetupWindow_message "PlayOnLinux will temporarily copy the three cdrom in you home directory.\nPlease ensure you have enought disk space\n\nPlease mount the first CD-ROM" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "LaunchBF.exe"
ORIGINAL_CDROM="$CDROM"
TEMP="$HOME/.PlayOnLinux/tmp/bf"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/$PREFIXE_
mkdir -p $TEMP
cd "$REPERTOIRE/wineprefix/$PREFIXE_"

select_prefixe "$(pwd)"
POL_SetupWindow_prefixcreate
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $REPERTOIRE/tmp/jka d:

cd $TEMP
POL_SetupWindow_wait_next_signal "PlayOnLinux is copying the first CD-ROM" "$TITLE"
cp $CDROM//* ./ -r
chmod 777 $TEMP/ -R

POL_SetupWindow_detect_exit
POL_SetupWindow_message "Please insert the second CD-ROM" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "GameData/data3.cab"

POL_SetupWindow_wait_next_signal "PlayOnLinux is copying the second CD-ROM" "$TITLE"
cd $TEMP
cp $CDROM/* ./ -r
chmod 777 $TEMP -R

POL_SetupWindow_detect_exit
POL_SetupWindow_message "Please insert the third CD-ROM" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "GameData/data4.cab"

POL_SetupWindow_wait_next_signal "PlayOnLinux is copying the third CD-ROM" "$TITLE"
cd $TEMP
cp $CDROM/* ./ -r
chmod 777 $TEMP -R

POL_SetupWindow_detect_exit

POL_SetupWindow_wait_next_signal "PlayOnLinux is installing $TITLE ..." "$TITLE"
wine $TEMP/GameData/Setup.exe

POL_SetupWindow_detect_exit
POL_SetupWindow_reboot

POL_SetupWindow_wait_next_signal "Clealing temp directory" "$TITLE"
chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $ORIGINAL_CDROM ./d:
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "$PREFIXE_" "Program Files/LucasArts/Star Wars Battlefront/" "LaunchBF.exe" "" "Star Wars : Battlefront"

#Création Icone
cd "$REPERTOIRE/tmp"
wget http://sd-1.archive-host.com/membres/images/51568577817080088/Battlefront.png
mv "$REPERTOIRE/tmp/Battlefront.png" "$REPERTOIRE/icones/32/Star Wars : Battlefront"

POL_SetupWindow_message "Installation finished" "$TITLE"
POL_SetupWindow_Close
exit 

Contributions

Filters:

Contribute
Member Nachricht