Applications

Choose a category

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

Star Wars : Jedi Knight : Jedi Academy

Magic number : 3

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
 
cfg_check
 
#Presentation
 
cd $REPERTOIRE/tmp
rm *.jpg
wget $SITE/setups/jka/left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
TITLE="Jedi Knight : Jedi Academy"
POL_SetupWindow_presentation "Jedi Knight : Jedi Academy" "LucasArts" "http://www.lucasarts.com" "Tinou" "JediKnightAcademy" 1 8
 
POL_SetupWindow_message "PlayOnLinux will temporarily copy the two 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 "GameData/Setup.exe"
ORIGINAL_CDROM="$CDROM"
TEMP="$HOME/.PlayOnLinux/tmp/jka"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/JediKnightAcademy
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/JediKnightAcademy
 
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_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 "JediKnightAcademy" "Program Files/LucasArts/Star Wars Jedi Knight Jedi Academy/" "JediAcademy.exe" "JediKnightAcademy.xpm" "Jedi Knight Academy"
 
POL_SetupWindow_message "Installation finished\n\nYou need to patch the game to run it" "$TITLE"
POL_SetupWindow_Close
exit
 
Il n'y a rien à voir ici