risen2.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/bash
  2. # Date : (2014-08-20 20:18)
  3. # Last Revision : (2014-08-20 20:18)
  4. # Wine Version used : 1.7.20
  5. # Distribution used to test : Debian testing/jessie
  6. # Author: Hoshpak
  7. # Script license : GPL v2
  8. # Programm license : Retail
  9. # Depend :
  10. [ "$PLAYONLINUX" = "" ] && exit 0
  11. source "$PLAYONLINUX/lib/sources"
  12. GOGID_BASE="risen_2_dark_waters"
  13. GOGID_GOLD="risen_2_dark_waters_gold_edition"
  14. PREFIX="Risen2_gog"
  15. WORKING_WINE_VERSION="1.7.20"
  16. TITLE="GOG.com - Risen 2: Dark Waters"
  17. POL_SetupWindow_Init
  18. POL_Debug_Init
  19. POL_SetupWindow_presentation "$TITLE" "Piranha Bytes" "http://www.gog.com/game/$GOGID_BASE" "Hoshpak" "$PREFIX"
  20. POL_Call POL_GoG_setup "$GOGID_BASE"
  21. POL_Wine_SelectPrefix "$PREFIX"
  22. POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  23. POL_Call POL_GoG_install "/nogui"
  24. POL_SetupWindow_question "$(eval_gettext '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"
  25. if [ "$APP_ANSWER" == "TRUE" ];
  26. then
  27. POL_SELECTED_FILE=""
  28. POL_Call POL_GoG_setup "$GOGID_UPGRADE"
  29. POL_Call POL_GoG_install
  30. fi
  31. POL_Call POL_Install_d3dx9_36
  32. Set_OS winxp
  33. # Configure the shortcut
  34. GOGPATH="$GOGROOT/Risen 2 - Dark Waters"
  35. POL_Shortcut "Risen.exe" "Risen 2: Dark Waters" "" "" "Game;"
  36. POL_Shortcut "Settings.exe" "Risen 2: Dark Waters Settings" "" "" "Game;"
  37. POL_SetupWindow_Close
  38. exit 0