Эх сурвалжийг харах

added first version of the Risen 2 install script, including option to upgrade to Gold Edition

Helmut Pozimski 9 жил өмнө
parent
commit
9cb2daed76
1 өөрчлөгдсөн 51 нэмэгдсэн , 0 устгасан
  1. 51 0
      risen2.sh

+ 51 - 0
risen2.sh

@@ -0,0 +1,51 @@
+#!/bin/bash
+# Date : (2014-08-20 20:18)
+# Last Revision : (2014-08-20 20:18)
+# Wine Version used : 1.7.20
+# Distribution used to test : Debian testing/jessie
+# Author: Hoshpak
+# Script license : GPL v2
+# Programm license : Retail
+# Depend :
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+GOGID_BASE="risen_2_dark_waters"
+GOGID_GOLD="risen_2_dark_waters_gold_edition"
+PREFIX="Risen2_gold_gog"
+WORKING_WINE_VERSION="1.7.20"
+
+TITLE="GOG.com - Risen 2: Dark Waters"
+
+POL_SetupWindow_Init
+POL_Deug_Init
+
+POL_SetupWindow_presentation "$TITLE" "Piranha Bytes" "http://www.gog.com/game/$GOGID_BASE" "Hoshpak" "$PREFIX"
+
+POL_Call POL_GoG_setup "$GOGID_BASE"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Call POL_GoG_install "/nogui"
+
+POL_SetupWindow_question "Do you want to install the Gold Edition Upgrade now? This will only be possible if you purchased the Gold Edition, you can still install it later if you want." "$TITLE"
+
+if [ "$APP_ANSWER" == "TRUE" ];
+then
+	POL_CALL POL_GoG_setup "$GOGID_UPGRADE"
+	POL_CALL POL_GoG_install
+fi
+
+POL_Call POL_Install_d3dx9_36
+
+Set_OS winxp
+
+# Configure the shortcut
+GOGPATH="$GOGROOT/Risen 2 - Dark Waters"
+POL_Shortcut "Risen.exe" "Risen 2" "" "" "Game;"
+POL_Shortcut "Settings.exe" "Risen 2 Settings" "" "" "Game;"
+
+POL_SetupWindow_Close
+exit 0