stronghold_crusader_hd.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. # Date : (2014-08-19 18:32)
  3. # Last Revision : (2014-08-19 22:07)
  4. # Wine Version used : 1.6.2
  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="stronghold_crusader"
  13. PREFIX="Stronghold_crusader_gog"
  14. WORKING_WINE_VERSION="1.6.2"
  15. TITLE="GOG.com - Stronghold Crusader HD"
  16. POL_SetupWindow_Init
  17. POL_Debug_Init
  18. POL_SetupWindow_presentation "$TITLE" "Firefly Studios" "http://www.gog.com/game/$GOGID" "Hoshpak" "$PREFIX"
  19. POL_Call POL_GoG_setup "$GOGID"
  20. POL_Wine_SelectPrefix "$PREFIX"
  21. POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  22. POL_Call POL_GoG_install
  23. # Needed for multiplayer
  24. POL_Call POL_Install_directplay
  25. Set_OS winxp
  26. # Language selection for the manual shortcut
  27. POL_SetupWindow_menu "$(eval_gettext 'What is your preferred language?')" "$(eval_gettext 'Language')" "en: English~fr: French~de: German~it: Italian~es: Spanish~pl: Polish" "~"
  28. MAN_LANG=$(echo "${APP_ANSWER}" | cut -d ':' -f 1)
  29. # Configure the shortcut
  30. GOGPATH="$GOGROOT/Stronghold Crusader Extreme HD"
  31. POL_Shortcut "Stronghold Crusader.exe" "Stronghold Crusader HD" "" "" "Game;StrategyGame;"
  32. POL_Shortcut "Stronghold_Crusader_Extreme.exe" "Stronghold Crusader Extreme HD" "" "" "Game;StrategyGame;"
  33. POL_Shortcut_Document "Stronghold Crusader Extreme HD" "$GOGPATH/manual/manual_$MAN_LANG.pdf"
  34. POL_SetupWindow_Close
  35. exit 0