fr

Source code for Sonic Fan Remix

This script is signed by PlayOnLinux.
#!/bin/bash
# Date : (2010-30-10 21-00)
# 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.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" 

# 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 "$POL_USER_ROOT/ressources"
if [ ! -e "SFRDemo_v3.0.0.51258.exe" ]; then
        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 "$(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_VMS $GAME_VMS

## Fix for this game
# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

## Begin Common PlayOnMac Section ##
[ "$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_Shortcut "Sonic Fan Remix.exe" "$TITLE" "$TITLE.png" ""

POL_SetupWindow_Close
exit

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAk5Xn0YACgkQ5TH6yaoTykdtiwCfWuMqU0PcqIDx0ymXqAi5lZF+
KJEAn0h8kbBjbexjzrtFZQTtBnwgO/ou
=t/98
-----END PGP SIGNATURE-----
Date : 26 August 2011 15:27:34
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

Il n'y a rien à voir ici