fr

Changes for Sonic Fan Remix

Revision by petch (01 July 2012 23:59:31)

No change were made in the code

Revision by GNU_Raziel (26 August 2011 15:27:18)

@@ -47,12 +47,12 @@
 
 ## Fix for this game
 # Sound problem fix - pulseaudio related
-[ "$POL_OS" = "Linux" ] || Set_SoundDriver "alsa"
-[ "$POL_OS" = "Linux" ] || Set_SoundEmulDriver "Y"
+[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
+[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
 ## End Fix
 
 ## Begin Common PlayOnMac Section ##
-[ "$POL_OS" = "Mac" ]|| Set_Managed "Off"
+[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
 ## End Section ##
 
 # Cleaning temp

Revision by GNU_Raziel (12 August 2011 15:48:27)

@@ -1,101 +1,69 @@
 #!/bin/bash
 # Date : (2010-30-10 21-00)
-# Last revision : (2011-08-08 21-00)
-# Wine version used : 1.3.17, 1.3.23
+# Last revision : (2011-09-08 21:00)
+# Wine version used : 1.3.6, 1.3.26
 # Distribution used to test : Debian Testing x64
 # Author : GNU_Raziel
 # Licence : Retail
 # Only For : http://www.playonlinux.com
- 
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+
 TITLE="Sonic Fan Remix"
 PREFIX="sonicfanremix"
-WORKING_WINE_VERSION="1.3.23"
- 
-if [ "$POL_LANG" == "fr" ]; then
-LNG_SFR_DL="Téléchargement du Freeware $TITLE..."
-LNG_INSTALL_ON="Installation en cours..."
-LNG_GAME_VMS="La taille de votre mémoire graphique?"
-LNG_VMS_ERROR="Ce jeu ne fonctionnera correctement qu'avec une carte graphique ayant plus de 256Mo de mémoire."
-LNG_SUCCES="$TITLE a été installé avec succès."
-else
-LNG_SFR_DL="Downloading $TITLE Freeware..."
-LNG_INSTALL_ON="Installation in progress..."
-LNG_GAME_VMS="How much memory do your graphic card have got?"
-LNG_VMS_ERROR="This game will work correctly only with a graphic card with more than 256MB of memory."
-LNG_SUCCES="$TITLE has been installed successfully."
-fi
- 
+WORKING_WINE_VERSION="1.3.26"
+GAME_VMS="256"
+
 # Starting the script
 rm "$POL_USER_ROOT/tmp/*.jpg"
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/SFR/top.jpg" "http://files.playonlinux.com/resources/setups/SFR/left.jpg" "SonicFanRemix"
 POL_SetupWindow_InitWithImages
 
+# Starting debugging API
+POL_Debug_Init
+
 POL_SetupWindow_presentation "$TITLE" "Sonic Fan Team" "http://sonicfanremix.com/" "GNU_Raziel" "$PREFIX" 
- 
-select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX"
- 
-# Downloading specific Wine
-if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then
-POL_Call POL_Install_wine64b
-else
-POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
-fi
-Use_WineVersion "$WORKING_WINE_VERSION"
- 
-# Creating prefix
-POL_SetupWindow_prefixcreate
+
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+
+# Downloading wine if necessary and creating prefix
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
 # Downloading SFR game (it's a freeware)
-cd "$REPERTOIRE/ressources"
+cd "$POL_USER_ROOT/ressources"
 if [ ! -e "SFRDemo_v3.0.0.51258.exe" ]; then
-	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRDemo_v3.0.0.51258.exe"
+	POL_SetupWindow_download "$(eval_gettext 'Downloading $TITLE Freeware...')" "$TITLE" "http://files.playonlinux.com/SFRDemo_v3.0.0.51258.exe"
 fi
 
 # Installing game
-POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
-wine start /unix "$REPERTOIRE/ressources/SFRDemo_v3.0.0.51258.exe"
-wineserver -w
-POL_SetupWindow_detect_exit
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installation in progress...')" "$TITLE"
+POL_Wine start /unix "SFRDemo_v3.0.0.51258.exe"
+POL_Wine_WaitExit
 
 # Asking about memory size of graphic card
-POL_SetupWindow_menu_list "$LNG_GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1536-1792-2048-3072-4096" "-" "256"
-VMS="$APP_ANSWER"
- 
-cd "$WINEPREFIX/drive_c/windows/temp/"
-cat << EOF > vms.reg
-[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
-"VideoMemorySize"="$VMS"
-EOF
-regedit vms.reg
-if [ "$VMS" -lt "256" ]; then
-	POL_SetupWindow_message "$LNG_VMS_ERROR" "$TITLE"
-fi
+POL_SetupWindow_VMS $GAME_VMS
 
 ## Fix for this game
-POL_Call POL_Function_OverrideDLL "" "mmdevapi"
 # Sound problem fix - pulseaudio related
-[ "$PLAYONMAC" == "" ] && Set_SoundDriver "alsa"
-[ "$PLAYONMAC" == "" ] && Set_SoundEmulDriver "Y"
+[ "$POL_OS" = "Linux" ] || Set_SoundDriver "alsa"
+[ "$POL_OS" = "Linux" ] || Set_SoundEmulDriver "Y"
 ## End Fix
 
 ## Begin Common PlayOnMac Section ##
-[ "$PLAYONMAC" == "" ] || Set_Managed "Off"
+[ "$POL_OS" = "Mac" ]|| Set_Managed "Off"
 ## End Section ##
- 
+
 # Cleaning temp
 if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
 	rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
 	chmod -R 777 "$POL_USER_ROOT/tmp/"
 	rm -rf "$POL_USER_ROOT/tmp/*"
 fi
- 
+
 # Making shortcut
-POL_SetupWindow_auto_shortcut "$PREFIX" "Sonic Fan Remix.exe" "$TITLE" "$TITLE.png" ""
-Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
+POL_Shortcut "Sonic Fan Remix.exe" "$TITLE" "$TITLE.png" ""
 
-POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
 POL_SetupWindow_Close
 exit
\ No newline at end of file

Revision by GNU_Raziel (08 August 2011 20:30:55)

@@ -1,30 +1,35 @@
 #!/bin/bash
 # Date : (2010-30-10 21-00)
-# Last revision : (2011-13-04 21-00)
-# Wine version used : 1.3.17
-# Distribution used to test : Debian Squeeze (Testing)
+# Last revision : (2011-08-08 21-00)
+# Wine version used : 1.3.17, 1.3.23
+# Distribution used to test : Debian Testing x64
 # Author : GNU_Raziel
 # Licence : Retail
+# Only For : http://www.playonlinux.com
  
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
 TITLE="Sonic Fan Remix"
 PREFIX="sonicfanremix"
-WORKING_WINE_VERSION="1.3.17"
+WORKING_WINE_VERSION="1.3.23"
  
 if [ "$POL_LANG" == "fr" ]; then
 LNG_SFR_DL="Téléchargement du Freeware $TITLE..."
 LNG_INSTALL_ON="Installation en cours..."
+LNG_GAME_VMS="La taille de votre mémoire graphique?"
+LNG_VMS_ERROR="Ce jeu ne fonctionnera correctement qu'avec une carte graphique ayant plus de 256Mo de mémoire."
 LNG_SUCCES="$TITLE a été installé avec succès."
 else
 LNG_SFR_DL="Downloading $TITLE Freeware..."
 LNG_INSTALL_ON="Installation in progress..."
+LNG_GAME_VMS="How much memory do your graphic card have got?"
+LNG_VMS_ERROR="This game will work correctly only with a graphic card with more than 256MB of memory."
 LNG_SUCCES="$TITLE has been installed successfully."
 fi
  
-#starting the script
-cd "$POL_USER_ROOT/tmp/*.jpg"
+# Starting the script
+rm "$POL_USER_ROOT/tmp/*.jpg"
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/SFR/top.jpg" "http://files.playonlinux.com/resources/setups/SFR/left.jpg" "SonicFanRemix"
 POL_SetupWindow_InitWithImages
 
@@ -32,7 +37,7 @@
  
 select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX"
  
-#downloading specific Wine
+# Downloading specific Wine
 if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then
 POL_Call POL_Install_wine64b
 else
@@ -40,38 +45,54 @@
 fi
 Use_WineVersion "$WORKING_WINE_VERSION"
  
-#Creating prefix
+# Creating prefix
 POL_SetupWindow_prefixcreate
 
-#Downloading SFR game (it's a freeware)
+# Downloading SFR game (it's a freeware)
 cd "$REPERTOIRE/ressources"
 if [ ! -e "SFRDemo_v3.0.0.51258.exe" ]; then
 	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRDemo_v3.0.0.51258.exe"
 fi
 
-#Installing game
+# Installing game
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
 wine start /unix "$REPERTOIRE/ressources/SFRDemo_v3.0.0.51258.exe"
-INSTALL_ON="1"
-until [ "$INSTALL_ON" == "" ]; do
-sleep 5
-INSTALL_ON=`ps aux | grep "wineserver" | grep -v "grep"`
-done
+wineserver -w
 POL_SetupWindow_detect_exit
+
+# Asking about memory size of graphic card
+POL_SetupWindow_menu_list "$LNG_GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1536-1792-2048-3072-4096" "-" "256"
+VMS="$APP_ANSWER"
  
-### PlayOnMac Section
+cd "$WINEPREFIX/drive_c/windows/temp/"
+cat << EOF > vms.reg
+[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
+"VideoMemorySize"="$VMS"
+EOF
+regedit vms.reg
+if [ "$VMS" -lt "256" ]; then
+	POL_SetupWindow_message "$LNG_VMS_ERROR" "$TITLE"
+fi
+
+## Fix for this game
+POL_Call POL_Function_OverrideDLL "" "mmdevapi"
+# Sound problem fix - pulseaudio related
 [ "$PLAYONMAC" == "" ] && Set_SoundDriver "alsa"
-[ "$PLAYONMAC" == "" ] || Set_Managed "Off"
-## End Section
+[ "$PLAYONMAC" == "" ] && Set_SoundEmulDriver "Y"
+## End Fix
 
-#cleaning temp
+## Begin Common PlayOnMac Section ##
+[ "$PLAYONMAC" == "" ] || Set_Managed "Off"
+## End Section ##
+ 
+# Cleaning temp
 if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
 	rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
-	chmod -R 777 "$REPERTOIRE/tmp/"
-	rm -rf "$REPERTOIRE/tmp/*"
+	chmod -R 777 "$POL_USER_ROOT/tmp/"
+	rm -rf "$POL_USER_ROOT/tmp/*"
 fi
-
-#making shortcut
+ 
+# Making shortcut
 POL_SetupWindow_auto_shortcut "$PREFIX" "Sonic Fan Remix.exe" "$TITLE" "$TITLE.png" ""
 Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
 

Revision by GNU_Raziel (13 April 2011 18:31:52)

@@ -1,7 +1,7 @@
 #!/bin/bash
 # Date : (2010-30-10 21-00)
-# Last revision : (2010-30-10 21-00)
-# Wine version used : 1.3.6
+# Last revision : (2011-13-04 21-00)
+# Wine version used : 1.3.17
 # Distribution used to test : Debian Squeeze (Testing)
 # Author : GNU_Raziel
 # Licence : Retail
@@ -11,7 +11,7 @@
  
 TITLE="Sonic Fan Remix"
 PREFIX="sonicfanremix"
-WORKING_WINE_VERSION="1.3.6"
+WORKING_WINE_VERSION="1.3.17"
  
 if [ "$POL_LANG" == "fr" ]; then
 LNG_SFR_DL="Téléchargement du Freeware $TITLE..."
@@ -24,21 +24,24 @@
 fi
  
 #starting the script
-cd $REPERTOIRE/tmp
-rm *.jpg
+cd "$POL_USER_ROOT/tmp/*.jpg"
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/SFR/top.jpg" "http://files.playonlinux.com/resources/setups/SFR/left.jpg" "SonicFanRemix"
 POL_SetupWindow_InitWithImages
 
 POL_SetupWindow_presentation "$TITLE" "Sonic Fan Team" "http://sonicfanremix.com/" "GNU_Raziel" "$PREFIX" 
  
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
-
+select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX"
+ 
 #downloading specific Wine
+if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then
+POL_Call POL_Install_wine64b
+else
 POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
+fi
 Use_WineVersion "$WORKING_WINE_VERSION"
-
-#fetching PROGRAMFILES environmental variable 
-POL_LoadVar_PROGRAMFILES
+ 
+#Creating prefix
+POL_SetupWindow_prefixcreate
 
 #Downloading SFR game (it's a freeware)
 cd "$REPERTOIRE/ressources"

Revision by GNU_Raziel (03 November 2010 19:11:13)

@@ -42,14 +42,18 @@
 
 #Downloading SFR game (it's a freeware)
 cd "$REPERTOIRE/ressources"
-if [ ! -e "SFRdemo.tar.bz2" ]; then
-	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRdemo.tar.bz2"
+if [ ! -e "SFRDemo_v3.0.0.51258.exe" ]; then
+	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRDemo_v3.0.0.51258.exe"
 fi
 
 #Installing game
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
-cd "$WINEPREFIX/drive_c/Program Files/"
-tar jxfv "$REPERTOIRE/ressources/SFRdemo.tar.bz2"
+wine start /unix "$REPERTOIRE/ressources/SFRDemo_v3.0.0.51258.exe"
+INSTALL_ON="1"
+until [ "$INSTALL_ON" == "" ]; do
+sleep 5
+INSTALL_ON=`ps aux | grep "wineserver" | grep -v "grep"`
+done
 POL_SetupWindow_detect_exit
  
 ### PlayOnMac Section

Revision by GNU_Raziel (03 November 2010 13:35:51)

@@ -65,7 +65,7 @@
 fi
 
 #making shortcut
-POL_SetupWindow_auto_shortcut "$PREFIX" "Sonic Fan Remix.exe" "$TITLE" $TITLE.png"" ""
+POL_SetupWindow_auto_shortcut "$PREFIX" "Sonic Fan Remix.exe" "$TITLE" "$TITLE.png" ""
 Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
 
 POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"

Revision by GNU_Raziel (03 November 2010 13:33:29)

@@ -49,7 +49,7 @@
 #Installing game
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
 cd "$WINEPREFIX/drive_c/Program Files/"
-tar jxfv SFRdemo.tar.bz2
+tar jxfv "$REPERTOIRE/ressources/SFRdemo.tar.bz2"
 POL_SetupWindow_detect_exit
  
 ### PlayOnMac Section

Revision by GNU_Raziel (03 November 2010 12:23:28)

@@ -26,10 +26,8 @@
 #starting the script
 cd $REPERTOIRE/tmp
 rm *.jpg
-#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wormsreloaded/top.jpg" "http://files.playonlinux.com/resources/setups/wormsreloaded/left.jpg" "$TITLE"
-#[ "$PLAYONMAC" == "" ] || POL_SetupWindow_Init
-#[ "$PLAYONMAC" == "" ] && POL_SetupWindow_InitWithImages
-POL_SetupWindow_Init
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/SFR/top.jpg" "http://files.playonlinux.com/resources/setups/SFR/left.jpg" "SonicFanRemix"
+POL_SetupWindow_InitWithImages
 
 POL_SetupWindow_presentation "$TITLE" "Sonic Fan Team" "http://sonicfanremix.com/" "GNU_Raziel" "$PREFIX" 
  
@@ -48,10 +46,10 @@
 	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRdemo.tar.bz2"
 fi
 
-#Installing SFR game
+#Installing game
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
 cd "$WINEPREFIX/drive_c/Program Files/"
-tar jxfv  "$REPERTOIRE/ressources/SFRDemo.tar.bz2"
+tar jxfv SFRdemo.tar.bz2
 POL_SetupWindow_detect_exit
  
 ### PlayOnMac Section
@@ -67,7 +65,7 @@
 fi
 
 #making shortcut
-POL_SetupWindow_auto_shortcut "$PREFIX" "Sonic Fan Remix.exe" "$TITLE" "" ""
+POL_SetupWindow_auto_shortcut "$PREFIX" "Sonic Fan Remix.exe" "$TITLE" $TITLE.png"" ""
 Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
 
 POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"

Revision by GNU_Raziel (31 October 2010 20:52:30)

@@ -44,8 +44,8 @@
 
 #Downloading SFR game (it's a freeware)
 cd "$REPERTOIRE/ressources"
-if [ ! -e "SFRDemo.tar.bz2" ]; then
-	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRDemo.tar.bz2"
+if [ ! -e "SFRdemo.tar.bz2" ]; then
+	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRdemo.tar.bz2"
 fi
 
 #Installing SFR game

Revision by GNU_Raziel (31 October 2010 00:31:25)

@@ -51,7 +51,7 @@
 #Installing SFR game
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
 cd "$WINEPREFIX/drive_c/Program Files/"
-tar jxfv SFRDemo.tar.bz2
+tar jxfv  "$REPERTOIRE/ressources/SFRDemo.tar.bz2"
 POL_SetupWindow_detect_exit
  
 ### PlayOnMac Section

Revision by GNU_Raziel (30 October 2010 23:58:40)

@@ -1,6 +1,6 @@
 #!/bin/bash
 # Date : (2010-30-10 21-00)
-# Last revision : (2010-30-10 16-00)
+# Last revision : (2010-30-10 21-00)
 # Wine version used : 1.3.6
 # Distribution used to test : Debian Squeeze (Testing)
 # Author : GNU_Raziel
@@ -14,16 +14,12 @@
 WORKING_WINE_VERSION="1.3.6"
  
 if [ "$POL_LANG" == "fr" ]; then
-LNG_SFR_DL="Un mirroir pour $TITLE va etre ouvert sur votre\nnavigateur, téléchargez-le."
-LNG_CHOOSE_SFR="Veuillez selectionner le fichier \"SFRdemo.rar\""
+LNG_SFR_DL="Téléchargement du Freeware $TITLE..."
 LNG_INSTALL_ON="Installation en cours..."
-LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera\nterminée sous peine de devoir recommencer l'installation."
 LNG_SUCCES="$TITLE a été installé avec succès."
 else
-LNG_SFR_DL="$TITLE mirror will be displayed, please\ndownload it."
-LNG_CHOOSE_SFR="Please select \"SFRdemo.rar\" file"
+LNG_SFR_DL="Downloading $TITLE Freeware..."
 LNG_INSTALL_ON="Installation in progress..."
-LNG_WAIT_END="Click NEXT when the installation will finish"
 LNG_SUCCES="$TITLE has been installed successfully."
 fi
  
@@ -35,7 +31,7 @@
 #[ "$PLAYONMAC" == "" ] && POL_SetupWindow_InitWithImages
 POL_SetupWindow_Init
 
-POL_SetupWindow_presentation "$TITLE" "Fan Team" "http://sonicfanremix.com/" "GNU_Raziel" "$PREFIX" 
+POL_SetupWindow_presentation "$TITLE" "Sonic Fan Team" "http://sonicfanremix.com/" "GNU_Raziel" "$PREFIX" 
  
 select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
 
@@ -43,23 +39,19 @@
 POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
 Use_WineVersion "$WORKING_WINE_VERSION"
 
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES="Program Files" 
+#fetching PROGRAMFILES environmental variable 
 POL_LoadVar_PROGRAMFILES
 
-#Installing mandatory dependencies
-#POL_Call POL_Install_d3dx9
-
 #Downloading SFR game (it's a freeware)
-POL_SetupWindow_message "$LNG_SFR_DL" "$TITLE"
-browser "http://www.megaupload.com/?d=D315B1S7"
- 
-#Asking then installing SFR game
-cd $HOME
-POL_SetupWindow_browse "$LNG_CHOOSE_SFR" "$TITLE"
+cd "$REPERTOIRE/ressources"
+if [ ! -e "SFRDemo.tar.bz2" ]; then
+	POL_SetupWindow_download "$LNG_SFR_DL" "$TITLE" "http://files.playonlinux.com/SFRDemo.tar.bz2"
+fi
+
+#Installing SFR game
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
-SETUP_RAR="$APP_ANSWER"
-unrar x $SETUP_RAR "$WINEPREFIX/drive_c/Program Files/"
+cd "$WINEPREFIX/drive_c/Program Files/"
+tar jxfv SFRDemo.tar.bz2
 POL_SetupWindow_detect_exit
  
 ### PlayOnMac Section

Revision by GNU_Raziel (30 October 2010 23:07:39)

@@ -20,7 +20,7 @@
 LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera\nterminée sous peine de devoir recommencer l'installation."
 LNG_SUCCES="$TITLE a été installé avec succès."
 else
-LNG_REFLEXIVE_DL="$TITLE mirror will be displayed, please\ndownload it."
+LNG_SFR_DL="$TITLE mirror will be displayed, please\ndownload it."
 LNG_CHOOSE_SFR="Please select \"SFRdemo.rar\" file"
 LNG_INSTALL_ON="Installation in progress..."
 LNG_WAIT_END="Click NEXT when the installation will finish"

Revision by GNU_Raziel (30 October 2010 23:04:57)

@@ -0,0 +1,83 @@
+#!/bin/bash
+# Date : (2010-30-10 21-00)
+# Last revision : (2010-30-10 16-00)
+# Wine version used : 1.3.6
+# Distribution used to test : Debian Squeeze (Testing)
+# Author : GNU_Raziel
+# Licence : Retail
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Sonic Fan Remix"
+PREFIX="sonicfanremix"
+WORKING_WINE_VERSION="1.3.6"
+ 
+if [ "$POL_LANG" == "fr" ]; then
+LNG_SFR_DL="Un mirroir pour $TITLE va etre ouvert sur votre\nnavigateur, téléchargez-le."
+LNG_CHOOSE_SFR="Veuillez selectionner le fichier \"SFRdemo.rar\""
+LNG_INSTALL_ON="Installation en cours..."
+LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera\nterminée sous peine de devoir recommencer l'installation."
+LNG_SUCCES="$TITLE a été installé avec succès."
+else
+LNG_REFLEXIVE_DL="$TITLE mirror will be displayed, please\ndownload it."
+LNG_CHOOSE_SFR="Please select \"SFRdemo.rar\" file"
+LNG_INSTALL_ON="Installation in progress..."
+LNG_WAIT_END="Click NEXT when the installation will finish"
+LNG_SUCCES="$TITLE has been installed successfully."
+fi
+ 
+#starting the script
+cd $REPERTOIRE/tmp
+rm *.jpg
+#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wormsreloaded/top.jpg" "http://files.playonlinux.com/resources/setups/wormsreloaded/left.jpg" "$TITLE"
+#[ "$PLAYONMAC" == "" ] || POL_SetupWindow_Init
+#[ "$PLAYONMAC" == "" ] && POL_SetupWindow_InitWithImages
+POL_SetupWindow_Init
+
+POL_SetupWindow_presentation "$TITLE" "Fan Team" "http://sonicfanremix.com/" "GNU_Raziel" "$PREFIX" 
+ 
+select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
+
+#downloading specific Wine
+POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
+Use_WineVersion "$WORKING_WINE_VERSION"
+
+#fetching PROGRAMFILES environmental variable
+PROGRAMFILES="Program Files" 
+POL_LoadVar_PROGRAMFILES
+
+#Installing mandatory dependencies
+#POL_Call POL_Install_d3dx9
+
+#Downloading SFR game (it's a freeware)
+POL_SetupWindow_message "$LNG_SFR_DL" "$TITLE"
+browser "http://www.megaupload.com/?d=D315B1S7"
+ 
+#Asking then installing SFR game
+cd $HOME
+POL_SetupWindow_browse "$LNG_CHOOSE_SFR" "$TITLE"
+POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
+SETUP_RAR="$APP_ANSWER"
+unrar x $SETUP_RAR "$WINEPREFIX/drive_c/Program Files/"
+POL_SetupWindow_detect_exit
+ 
+### PlayOnMac Section
+[ "$PLAYONMAC" == "" ] && Set_SoundDriver "alsa"
+[ "$PLAYONMAC" == "" ] || Set_Managed "Off"
+## End Section
+
+#cleaning temp
+if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
+	rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
+	chmod -R 777 "$REPERTOIRE/tmp/"
+	rm -rf "$REPERTOIRE/tmp/*"
+fi
+
+#making shortcut
+POL_SetupWindow_auto_shortcut "$PREFIX" "Sonic Fan Remix.exe" "$TITLE" "" ""
+Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
+
+POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
+POL_SetupWindow_Close
+exit
\ No newline at end of file
Il n'y a rien à voir ici