Applications

Choose a category

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

Reflexive Arcade games

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

presentation "Reflexive Arcade games" "Reflexive" "http://www.reflexive.com" "GNU_Raziel" "ReflexiveArcade" 1 9

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_REFLEXIVE_WARNING="Les jeux Reflexive ne sont pas gratuits, si vous ne les achetez pas vous ne pouvez jouer que pendant 60min."
LNG_REFLEXIVE_DL="Le site officiel de Reflexive va etre ouvert sur votre navigateur, 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_DX9_DL="Téléchargement de la mise a jour DirectX9.0c pour Wine..."
LNG_DX9_INSTALL="L'installation de la mise a jour DirectX9.0c pour Wine va débuter."
LNG_CHOOSE_REFLEXIVE="Choisssez le jeu a installer."
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 you will have only 60min of gaming."
LNG_REFLEXIVE_DL="Reflexive official website will be displayed, please download any game(s) you want to install."
LNG_WAIT_DL="Click on "Next" ONLY when you have finished downloading games."
LNG_DX9_DL="Downloading Wine DirectX9.0c Update..."
LNG_DX9_INSTALL="DirectX9.0c Update installation will begin."
LNG_CHOOSE_REFLEXIVE="Chosse the game you want to install."
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 forum for having informations about your game."
fi

warning "$LNG_REFLEXIVE_WARNING" "" 2 9

if [ ! -e $REPERTOIRE/wineprefix/ReflexiveArcade ]; then
mkdir -p $REPERTOIRE/wineprefix/ReflexiveArcade
cd $REPERTOIRE/wineprefix/ReflexiveArcade
select_prefixe "$(pwd)"
creer_prefixe 3 9

cd $WINEPREFIX/drive_c/windows/
mkdir temp

cd $REPERTOIRE/tmp/
if [ ! -e $REPERTOIRE/tmp/D3DX9_dll_update.zip ]; then
telecharger "$LNG_DX9_DL" http://www.threelights.de/page/projects/d3dx9_xx_dll_files/D3DX9_dll_update.zip "" 4 9
fi
cd $WINEPREFIX/drive_c/windows/temp/
unzip $REPERTOIRE/tmp/D3DX9_dll_update.zip
Set_OS "winxp"
message "$LNG_DX9_INSTALL" "" 5 9
wine c:\\windows\\temp\\D3DX9_dll_update\\Install\\DXSETUP.exe

else
cd $REPERTOIRE/wineprefix/ReflexiveArcade
select_prefixe "$(pwd)"
fi

message "$LNG_REFLEXIVE_DL" "" 6 9
browser "http://www.reflexive.com"
message "$LNG_WAIT_DL" "" 7 9

cd $HOME
CHOOSEN_GAME=`select_file "$LNG_CHOOSE_REFLEXIVE" "" 8 9`
wine $CHOOSEN_GAME

Set_Managed "On"
Set_DXGrab "On"
Set_GLSL "On"

simuler_reboot
rm -rf $WINEPREFIX/drive_c/windows/temp/*

create_shortcut()
{
cd $REPERTOIRE/wineprefix/ReflexiveArcade/drive_c/

EXEC=$(selectionner_fichier "$LNG_LI_EXEC")
EXECDIR=$(dirname "$EXEC")
EXECDIR=${EXECDIR//"$REPERTOIRE"/""}
DRIVE="/wineprefix/ReflexiveArcade/drive_c/"
EXECDIR=${EXECDIR//"$DRIVE"/""}
LAUNCHER=$(champ "$LNG_REFLEXIVE_LAUNCHER")
if [ ! "$EXECDIR" = "" ]
then
if [ ! "$LAUNCHER" = "" ]
then
creer_lanceur "ReflexiveArcade" "$EXECDIR" "$EXEC" "playonlinux.png" "$LAUNCHER"
fi
fi
}

create_shortcut

message "$LNG_REFLEXIVE_NOTE" "" 9 9

end_install
exit