Skripty
Skrypt dlaHalo Combat Evolved
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Halo Combat Evolved" "Ubisoft" "http://www.microsoft.com/games/halo/" "GNU_Raziel" "Halo" 1 6
if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_WINE_CHK="La version $WINE_CHK_VERSION de Wine doit être installée via 'Outils -> Gerer les Version de Wine' pour utiliser correctement a ce jeu."
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
else
LNG_WINE_CHK="You must install version $WINE_CHK_VERSION of Wine in order to use this Game, please use 'Tools -> Manage Wine Versions' to proceed."
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
fi
protection_warning
Ask_For_cdrom 2 6
Check_cdrom "Setup.Exe"
WINE_CHK_VERSION="0.9.58"
if [ ! -e $REPERTOIRE/WineVersions/$WINE_CHK_VERSION/ ]; then
message "$LNG_WINE_CHK" "" 3 6
exit 0
fi
export PATH="$REPERTOIRE/WineVersions/$WINE_CHK_VERSION/usr/bin/:$PATH"
export LD_LIBRARY_PATH="$REPERTOIRE/WineVersions/$WINE_CHK_VERSION/usr/lib/wine/"
mkdir -p $REPERTOIRE/wineprefix/Halo
cd $REPERTOIRE/wineprefix/Halo
select_prefixe "$(pwd)"
creer_prefixe 4 6
cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
ln -sf $CDROM ./d:
cp $CDROM/mgspid.dll $WINEPREFIX/drive_c/windows/system32/
cp $CDROM/PidGen.dll $WINEPREFIX/drive_c/windows/system32/
if [ ! -e $REPERTOIRE/ressources/ ]; then
mkdir -p $REPERTOIRE/ressources/
fi
cd $REPERTOIRE/ressources/
if [ ! -e $REPERTOIRE/ressources/mfc42.dll.zip ]; then
telecharger "$LNG_MFC42_DL" http://www.dllbank.com/zip/m/mfc42.dll.zip "" 5 6
fi
cd $WINEPREFIX/drive_c/windows/system32/
unzip $REPERTOIRE/ressources/mfc42.dll.zip
regsvr32 mfc42.dll
Set_OS "winxp"
fonts_to_prefixe
$REPERTOIRE/WineVersions/$WINE_CHK_VERSION/usr/bin/wine $CDROM/Setup.Exe
message "$LNG_WAIT_END" "" 6 6
Set_Managed "On"
Set_DXGrab "On"
Set_GLSL "On"
simuler_reboot
rm -rf $WINEPREFIX/drive_c/windows/temp/*
creer_lanceur "Halo" "Program Files/Microsoft Games/Halo" "halo.exe" "Halo.xpm" "Halo Combat Evolved"
Set_WineVersion_Assign "0.9.58" "Halo Combat Evolved"
end_install
exit