Voici le code original
trouvé ici :
#!/bin/bash
# Date : (2010-06-09 14-00)
# Last revision : (2011-10-02 11:26)
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel
# Licence : Retail
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="The Elder Scrolls 4 - Oblivion"
PREFIX="TheElderScrolls4_Oblivion"
# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/oblivion/top.jpg" "http://files.playonlinux.com/resources/setups/oblivion/left.jpg" "$TITLE"
POL_SetupWindow_Init
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_free_presentation "$TITLE" "$(eval_gettext 'Welcome in the patch $PVERSION installer for $TITLE')"
POL_SetupWindow_checkexist()
{
if [ ! -e "$POL_USER_ROOT/wineprefix/$1" ]; then
POL_SetupWindow_message "$(eval_gettext 'Game is not installed.')" "$TITLE"
POL_SetupWindow_Close
exit 0
fi
}
POL_SetupWindow_checkexist "$PREFIX"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Asking about patch local or not
cd "$HOME"
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Select patch to execute')" "$TITLE" ""
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
else
cd "$POL_USER_ROOT/tmp/"
if [ "$POL_LANG" == "fr" ]; then
PATCH_URL="http://static.bethsoft.com/isles/FIGS/ob/Oblivion_v1.2.0416French.exe"
PATCH_EXE="Oblivion_v1.2.0416French.exe"
elif [ "$POL_LANG" == "de" ]; then
PATCH_URL="http://static.bethsoft.com/isles/FIGS/ob/Oblivion_v1.2.0416German.exe"
PATCH_EXE="Oblivion_v1.2.0416German.exe"
elif [ "$POL_LANG" == "es" ]; then
PATCH_URL="http://static.bethsoft.com/Oblivion/Oblivion_v1.2.0416Spanish.exe"
PATCH_EXE="Oblivion_v1.2.0416Spanish.exe"
elif [ "$POL_LANG" == "it" ]; then
PATCH_URL="http://static.bethsoft.com/isles/FIGS/ob/Oblivion_v1.2.0416Italian.exe"
PATCH_EXE="Oblivion_v1.2.0416Italian.exe"
else
PATCH_URL="http://static.bethsoft.com/Oblivion/Oblivion_v1.2.0416English.exe"
PATCH_EXE="Oblivion_v1.2.0416English.exe"
fi
POL_SetupWindow_download "$(eval_gettext 'Wait while the patch is downloading...\\nThis operation can take time, depending of your connexion.')" "$TITLE" "$PATCH_URL"
POL_Wine start /unix "$PATCH_EXE"
POL_Wine_WaitExit "$TITLE"
rm "$PATCH_EXE"
fi
POL_SetupWindow_Close
exit 0
Pourtant, en recherchant les adresses sur
la page des patches de Bethesda, celles-ci sont fausses. Ce qui donne cette version modifiée :
#!/bin/bash
# Date : (2010-06-09 14-00)
# Last revision : (2011-10-02 11:26)
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel
# Licence : Retail
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="The Elder Scrolls 4 - Oblivion"
PREFIX="TheElderScrolls4_Oblivion"
# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/oblivion/top.jpg" "http://files.playonlinux.com/resources/setups/oblivion/left.jpg" "$TITLE"
POL_SetupWindow_Init
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_free_presentation "$TITLE" "$(eval_gettext 'Welcome in the patch $PVERSION installer for $TITLE')"
POL_SetupWindow_checkexist()
{
if [ ! -e "$POL_USER_ROOT/wineprefix/$1" ]; then
POL_SetupWindow_message "$(eval_gettext 'Game is not installed.')" "$TITLE"
POL_SetupWindow_Close
exit 0
fi
}
POL_SetupWindow_checkexist "$PREFIX"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Asking about patch local or not
cd "$HOME"
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Select patch to execute')" "$TITLE" ""
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
else
cd "$POL_USER_ROOT/tmp/"
if [ "$POL_LANG" == "fr" ]; then
PATCH_URL="http://download.zenimax.com/elderscrolls/oblivion/patches/1.2/Oblivion_v1.2.0416French.exe"
PATCH_EXE="Oblivion_v1.2.0416French.exe"
elif [ "$POL_LANG" == "de" ]; then
PATCH_URL="http://download.zenimax.com/elderscrolls/oblivion/patches/1.2/Oblivion_v1.2.0416German.exe"
PATCH_EXE="Oblivion_v1.2.0416German.exe"
elif [ "$POL_LANG" == "es" ]; then
PATCH_URL="http://download.zenimax.com/elderscrolls/oblivion/patches/1.2/Oblivion_v1.2.0416Spanish.exe"
PATCH_EXE="Oblivion_v1.2.0416Spanish.exe"
elif [ "$POL_LANG" == "it" ]; then
PATCH_URL="http://download.zenimax.com/elderscrolls/oblivion/patches/1.2/Oblivion_v1.2.0416Italian.exe"
PATCH_EXE="Oblivion_v1.2.0416Italian.exe"
else
PATCH_URL="http://download.zenimax.com/elderscrolls/oblivion/patches/1.2/Oblivion_v1.2.0416English.exe"
PATCH_EXE="Oblivion_v1.2.0416English.exe"
fi
POL_SetupWindow_download "$(eval_gettext 'Wait while the patch is downloading...\\nThis operation can take time, depending of your connexion.')" "$TITLE" "$PATCH_URL"
POL_Wine start /unix "$PATCH_EXE"
POL_Wine_WaitExit "$TITLE"
rm "$PATCH_EXE"
fi
POL_SetupWindow_Close
exit 0
Y'a-t-il moyen de modifier cela ? (je suis un petit nouveau, pas encore au fait des coutumes du lieu)
Edité par PostBlue