|
|
|
#!/bin/bash
|
|
|
|
# Date : (2008-05-23 20-13)
|
|
|
|
# Last revision : (2011-01-21 20-00)
|
|
|
|
# Wine version used : 1.3.5
|
|
|
|
# Distribution used to test : Debian Squeeze (Testing)
|
|
|
|
|
|
|
|
|
|
|
|
[ "$PLAYONLINUX" = "" ] && exit 0
|
|
|
|
|
|
|
|
#Charger les librairies
|
|
|
|
source "$PLAYONLINUX/lib/sources"
|
|
|
|
|
|
|
|
TITLE="Serious Sam : The First Encounter"
|
|
|
|
PREFIX="SeriousSam-TheFirstEncounter"
|
|
|
|
WORKING_WINE_VERSION="1.3.5"
|
|
|
|
|
|
|
|
if [ "$POL_LANG" == "fr" ]; then
|
|
|
|
LNG_WAIT_WARNING="Try playing Serious Sam in native version via the installer \navailable at this address: http://www.liflg.org/?catid=6&gameid=71"
|
|
|
|
LNG_CHOOSE_MEDIA="Choose your installation method :"
|
|
|
|
LNG_MEDIA_DDV="Digital Download Version"
|
|
|
|
LNG_MEDIA_CD="CD Version"
|
|
|
|
LNG_CHOOSE_DDV="Please select your Digital Download executable from $TITLE"
|
|
|
|
LNG_INSTALL_RUN="Installation in progress..."
|
|
|
|
LNG_WAIT_END="Press \"Next\" ONLY when the installation of the program isnterminated or you will have to start the installation again."
|
|
|
|
LNG_WAIT_HF="Are you serious?!"
|
|
|
|
else
|
|
|
|
LNG_CHOOSE_MEDIA="Choose your install method :"
|
|
|
|
LNG_MEDIA_DDV="Digital Download Version"
|
|
|
|
LNG_MEDIA_CD="CD Version"
|
|
|
|
LNG_CHOOSE_DDV="Please select your $TITLE Digital Download executable"
|
|
|
|
LNG_WAIT_WARNING="Try to play Serious Sam natively via the installer which is\navailable there: http://www.liflg.org/?catid=6&gameid=71"
|
|
|
|
LNG_INSTALL_RUN="Installation in progress..."
|
|
|
|
LNG_WAIT_END="Click on \"Next\" ONLY when the software installation is finished \nor you will have to install the game again."
|
|
|
|
LNG_WAIT_HF="Are you serious?!"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#Starting the script
|
|
|
|
#POL_GetSetupImages "<ADRESSE_IMAGE_TOP>" "<ADRESSE_IMAGE_LEFT>" "$TITLE"
|
|
|
|
#POL_SetupWindow_InitWithImages
|
|
|
|
POL_SetupWindow_Init
|
|
|
|
|
|
|
|
#Presentation
|
|
|
|
POL_SetupWindow_presentation "$TITLE" "Croteam" "http://www.seriouszone.com/" "syberia303" "$PREFIX"
|
|
|
|
|
|
|
|
POL_SetupWindow_message "$LNG_WAIT_WARNING" "$TITLE"
|
|
|
|
|
|
|
|
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
|
|
|
|
|
|
|
|
#downloading specific Wine
|
|
|
|
POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
|
|
|
|
Use_WineVersion "$WORKING_WINE_VERSION"
|
|
|
|
|
|
|
|
#fetching PROGRAMFILES environmental variable
|
|
|
|
POL_LoadVar_PROGRAMFILES
|
|
|
|
|
|
|
|
POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_MEDIA_CD~$LNG_MEDIA_DDV" "~"
|
|
|
|
GAME_MEDIAVERSION="$APP_ANSWER"
|
|
|
|
|
|
|
|
if [ "$GAME_MEDIAVERSION" == "$LNG_MEDIA_CD" ]; then
|
|
|
|
|
|
|
|
POL_SetupWindow_cdrom
|
|
|
|
POL_SetupWindow_check_cdrom "Setup.exe"
|
|
|
|
POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
|
|
|
|
wine start /unix "$CDROM/Setup.exe"
|
|
|
|
POL_SetupWindow_detect_exit
|
|
|
|
POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
|
|
|
|
|
|
|
|
elif [ "$GAME_MEDIAVERSION" == "$LNG_MEDIA_DDV" ]; then
|
|
|
|
|
|
|
|
cd "$HOME"
|
|
|
|
POL_SetupWindow_browse "$LNG_CHOOSE_DDV" "$TITLE"
|
|
|
|
SETUP_EXE="$APP_ANSWER"
|
|
|
|
POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
|
|
|
|
wine start /unix "$SETUP_EXE"
|
|
|
|
POL_SetupWindow_detect_exit
|
|
|
|
POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
POL_SetupWindow_auto_shortcut "$PREFIX" "SeriousSam.exe" "$TITLE" "$TITLE.png"
|
|
|
|
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
|
|
|
|
|
|
|
|
POL_SetupWindow_message "$LNG_WAIT_HF" "$TITLE"
|
|
|
|
|
|
|
|
POL_SetupWindow_Close
|
|
|
|
exit
|