#!/bin/bash
if
[
"$PLAYONLINUX"
=
""
]
then
exit
0
fi
source
"$PLAYONLINUX/lib/sources"
VERSIONWINE=$(wine --version)
TYTUL=
"Need for Speed III: Hot Pursuit"
PREFIX=
"NFS3HP"
POL_SetupWindow_Init
POL_SetupWindow_presentation
"$TYTUL"
"EA Games"
"N/A"
"NSLW"
"$PREFIX"
select_prefixe
"$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
Set_OS
"win98"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"nfs3.exe"
cd
$WINEPREFIX
/dosdevices
ln
-s $CDROM d:
echo
"[HKEY_LOCAL_MACHINE\\\\Software\\\\Wine\\\\Drives]"
> $REPERTOIRE
/tmp/cdrom
.reg
echo
"\\"
d:\\
"=\\"
cdrom\\
""
>> $REPERTOIRE
/tmp/cdrom
.reg
regedit $REPERTOIRE
/tmp/cdrom
.reg
POL_SetupWindow_message
"Wait 5 seconds then click next"
"$TYTUL"
POL_SetupWindow_wait_next_signal
"Installation in progress..."
"$TYTUL"
cd
$CDROM
POL_SetupWindow_menu
"What language do you prefer?"
"Language"
"english german spanish italian swedish french"
" "
if
[ ! -e
"$CDROM/setup/$APP_ANSWER/setup.exe"
];
then
cd
$REPERTOIRE
/ressources/
wine $CDROM
/setup/english/setup
.exe
else
wine $CDROM
/setup/
$APP_ANSWER
/setup
.exe
fi
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$TYTUL has been installed successfully"
"$TYTUL"
cp
"$CDROM/nfs3.ico"
"$REPERTOIRE/icones/32/$TYTUL"
POL_SetupWindow_menu
"What display driver would you like to use?"
"Display drivers"
"Direct3D Voodoo(recommended)"
" "
DISPDRV=$APP_ANSWER
if
[
"$DISPDRV"
==
"Direct3D"
];
then
POL_SetupWindow_make_shortcut
"$PREFIX"
"Program Files/Electronic Arts/Need For Speed III"
"nfs3.exe"
""
"$TYTUL"
""
"-d3d0"
else
POL_SetupWindow_question
"Do you've got bsdiff package installed?"
"bsdiff dependency"
if
[
"$APP_ANSWER"
==
"FALSE"
] ;
then
POL_SetupWindow_make_shortcut
"$PREFIX"
"Program Files/Electronic Arts/Need For Speed III"
"nfs3.exe"
""
"$TYTUL"
""
"-d3d0"
else
cd
"$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III"
POL_SetupWindow_download
"PlayOnLinux is downloading display resolution patch"
" "
"http://www.inf.fu-berlin.de/~rschuste/nfs3hp-1152x864.bsdiff"
bspatch
"$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III/d3da.dll"
"$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III/voodoo2a.dll"
"$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III/nfs3hp-1152x864.bsdiff"
POL_SetupWindow_make_shortcut
"$PREFIX"
"Program Files/Electronic Arts/Need For Speed III"
"nfs3.exe"
""
"$TYTUL"
""
"-voodoo2"
fi
fi
POL_SetupWindow_Close
exit