Magic number : 146
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
if [ "$POL_LANG" == "fr" ]; then
LNG_REFLEXIVE_WARNING="Les jeux Reflexive ne sont pas gratuits, si vous ne les achetez pas\nvous ne pouvez jouer que pendant 60min."
LNG_REFLEXIVE_DL="Le site officiel de Reflexive va etre ouvert sur votre\nnavigateur, téléchargez le ou les jeux de votre choix."
LNG_WAIT_DL="Appuyez sur "Suivant" quand vous avez fini de télécharger vos jeux."
LNG_CHOOSE_REFLEXIVE="Choisssez le jeu a installer."
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée\nsous peine de devoir recommencer l'installation."
LNG_REFLEXIVE_LAUNCHER="Choisissez un nom pour ce jeu (ex : Zuma Deluxe)."
LNG_REFLEXIVE_NOTE="Pour installer un nouveau jeu Reflexive, relancer ce script.\nPensez a visiter le forum pour savoir si le jeu selectionné fonctionne."
else
LNG_REFLEXIVE_WARNING="Reflexive Games are not free, if you don't buy them\nyou will have only 60min of gaming."
LNG_REFLEXIVE_DL="Reflexive official website will be displayed, please\ndownload any game(s) you want to install."
LNG_WAIT_DL="Click on "Next" ONLY when you have finished downloading games."
LNG_CHOOSE_REFLEXIVE="Chosse the game you want to install."
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished\nor you will have to redo the installation."
LNG_REFLEXIVE_LAUNCHER="Choose a name for this game (ex : Zuma Deluxe)."
LNG_REFLEXIVE_NOTE="If you want to install another game, relaunch this script.\nThink of visiting the\nforum for having informations about your game."
fi
LNG_LI_EXEC=$(eval_gettext "Choose the file to exec the game.")
cd $REPERTOIRE/tmp
rm *.jpg
wget $SITE/setups/reflexive/left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "Reflexive Arcade games" "Reflexive" "http://www.reflexive.com" "GNU_Raziel" "ReflexiveArcade"
POL_SetupWindow_message_image "$LNG_REFLEXIVE_WARNING" "Reflexive Arcade" "$PLAYONLINUX/themes/tango/warning.png"
select_prefixe "$REPERTOIRE/wineprefix/ReflexiveArcade/"
if [ ! -e $REPERTOIRE/wineprefix/ReflexiveArcade ]; then
POL_SetupWindow_prefixcreate
fi
POL_SetupWindow_message "$LNG_REFLEXIVE_DL" "Reflexive Arcade"
browser "http://www.reflexive.com"
POL_SetupWindow_message "$LNG_WAIT_DL" "Reflexive Arcade"
Set_OS "winxp"
cd $HOME
POL_SetupWindow_browse "$LNG_CHOOSE_REFLEXIVE" "Reflexive Arcade"
wine $APP_ANSWER
POL_SetupWindow_message "$LNG_WAIT_END" "Reflexive Arcade"
Set_Managed "On"
Set_DXGrab "On"
POL_SetupWindow_reboot
create_shortcut()
{
cd $REPERTOIRE/wineprefix/ReflexiveArcade/drive_c/
POL_SetupWindow_browse "$LNG_LI_EXEC" "Reflexive Arcade" ""
EXEC="$APP_ANSWER"
EXECDIR=$(dirname "$EXEC")
EXECDIR=${EXECDIR//"$REPERTOIRE"/""}
DRIVE="/wineprefix/ReflexiveArcade/drive_c/"
EXECDIR=${EXECDIR//"$DRIVE"/""}
POL_SetupWindow_textbox "$LNG_REFLEXIVE_LAUNCHER" "Reflexive Arcade" ""
LAUNCHER=$APP_ANSWER
if [ ! "$EXECDIR" = "" ]
then
if [ ! "$LAUNCHER" = "" ]
then
POL_SetupWindow_make_shortcut "ReflexiveArcade" "$EXECDIR" "$EXEC" "playonlinux.png" "$LAUNCHER"
fi
fi
}
create_shortcut
POL_SetupWindow_message "$LNG_REFLEXIVE_NOTE" "Reflexive Arcade"
POL_SetupWindow_Close
exit