The forum

Les Chevaliers de Baphomet : The Director's Cut

Version téléchargée depuis gog.com

Author Replies
ulukyn Friday 30 September 2011 at 20:19
ulukyn

J'ai fait un petit script pour "Les Chevaliers de Baphomet : The Director's Cut".

Je joins un zip avec la description, une icone, un left et un screen miniature.

http://ulukyn.free.fr/share/BrokenSwordDCE.zip

#!/bin/bash
# Date : (2011-09-30 19:00)
# Last revision : N/A
# Wine version used : System
# Distribution used to test : Linux Mint 11 x64
# Author : Ulukyn
# Licence : Retail
# Only For : http://www.playonmac.com


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="BrokenSwordDCE"
URL="http://www.gog.com/en/gamecard/broken_sword_directors_cut/"

if [ "$POL_LANG" == "fr" ]; then
TITLE="Les Chevaliers de Baphomet : The Director's Cut"
LNG_NEED_DL="Voulez-vous aller sur gog.com pour télécharger le jeu $TITLE ?"
LNG_YES="Oui"
LNG_NO="Non merci, je l'ai déjà fait"
LNG_CHOOSE_LOCAL="Veuillez sélectionner votre fichier d’installation de $TITLE"
else
TITLE="Broken Sword - Shadow of The Templars: The Director's Cut"
LNG_NEED_DL="Do you want donwload $TITLE from gog.com ?"
LNG_YES="Yes"
LNG_NO="No thanks, I already have it"
LNG_CHOOSE_LOCAL="Please select your $TITLE installation file"
fi

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/min.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "GOG.com" "www.gog.com" "Ulukyn" "$PREFIX" 

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Download game
POL_SetupWindow_menu "$LNG_NEED_DL" "Actions" "$LNG_YES~$LNG_NO" "~"

if [ "$APP_ANSWER" == "$LNG_YES" ]; then
	POL_Browser "$URL"
fi

POL_SetupWindow_browse "$LNG_CHOOSE_LOCAL" "$TITLE"
SETUP_EXE="$APP_ANSWER"

POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_auto_shortcut "$PREFIX" "bs1dc.exe" "$TITLE"

POL_SetupWindow_Close
exit

Edited by ulukyn

Quentin PÂRIS Saturday 1 October 2011 at 15:01
Quentin PÂRISAnonymous

Pas mal ! Par contre je met juste un titre plus long, mais je valide le script :)

Excellent travail

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com