@@ -1,46 +1,57 @@
#!/bin/bash
# Date : (2012-02-05 18-36)
-# Last revision : (2012-10-15 10-54)
+# Last revision : see changelog
# Wine version used : 1.5.15
-# Distribution used to test : Debian Sid (Unstable)
-# Author : Pierre Etchemaite pe-pol@concept-micro.com
+# Distribution used to test : Kunbuntu 18.04 x64
+# Author : see changelog
# Script licence : GPL v.2
# Program licence : Freeware
# Depend :
-
-# Tested with install archives:
+
+# Tested (2012) with install archives:
# TSR-SkiChallenge12.exe 71513656 "ca54f9f503159f933ac97ba123647cfb"
# TSR-SkiChallenge12.exe ? "5434f04497aa6e5376ac781e3c1040dc"
+# CHANGELOG
+# Pierre Etchemaite] (2012-02-05)
+# Initial writing.
+# [Dadu042] (2019-05-23)
+# Repair dead link (this changed the filename from TSR edition to SRF).
+# Disable WORKING_WINE_VERSION.
+
+# KNOWN ISSUES:
+# Wine 3.0.3 and 4.0.1 and 2.22 and 1.9.24 and 1.5.15: game does crash as soon launched.
+#
+
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-
+
PREFIX="SkiChallenge2012"
WORKING_WINE_VERSION="1.5.15"
-
+
TITLE="Ski Challenge 2012"
-SHORTCUT_NAME="Ski Challenge 12 (FTV)"
-
+SHORTCUT_NAME="Ski Challenge 12 (SRF)"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1045
POL_Debug_Init
-
+
POL_SetupWindow_presentation "$TITLE" "Greentube" "$URL" "Pierre Etchemaite" "$PREFIX"
-
+
if [ -n "$POL_SELECTED_FILE" ]; then
ARCHIVE="$POL_SELECTED_FILE"
else
cd "$POL_USER_ROOT/tmp"
- ARCHIVE="$POL_USER_ROOT/tmp/FTV-SkiChallenge12.exe"
+ ARCHIVE="$POL_USER_ROOT/tmp/SRF-SkiChallenge12.exe"
fi
-
+
POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+# POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_Wine_PrefixCreate
+
POL_Wine_WaitBefore "$TITLE"
-
+
POL_Wine --ignore-errors "$ARCHIVE"
case "$?" in
0|2)
@@ -49,17 +60,21 @@
POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
;;
esac
-
-
+
+
POL_SetupWindow_VMS "128"
-
+
# Doesn't hurt ;)
POL_Wine_reboot
-POL_Shortcut "Games/Ski Challenge 12 (FTV)/Updater.exe" "$SHORTCUT_NAME"
-POL_ExtractIcon "$WINEPREFIX/drive_c/Games/Ski Challenge 12 (FTV)/Game.exe" "$POL_USER_ROOT/icones/32/$SHORTCUT_NAME"
-POL_ExtractBiggestIcon "$WINEPREFIX/drive_c/Games/Ski Challenge 12 (FTV)/Game.exe" "$POL_USER_ROOT/icones/Full_size/$SHORTCUT_NAME"
+# Service down as of 2019
+# POL_Shortcut "Games/Ski Challenge 12 (SRF)/Updater.exe" "$SHORTCUT_NAME - Updated"
-POL_SetupWindow_Close
+# POL_ExtractIcon "$WINEPREFIX/drive_c/Games/Ski Challenge 12 (SRF)/Game.exe" "$POL_USER_ROOT/icones/32/$SHORTCUT_NAME"
+# POL_ExtractBiggestIcon "$WINEPREFIX/drive_c/Games/Ski Challenge 12 (SRF)/Game.exe" "$POL_USER_ROOT/icones/Full_size/$SHORTCUT_NAME"
-exit
+POL_Shortcut "Games/Ski Challenge 12 (SRF)/Game.exe" "$SHORTCUT_NAME"
+
+POL_SetupWindow_Close
+
+exit
\ No newline at end of file