the_witcher_2.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. # Date : (2014-08-20 21:03)
  3. # Last Revision : (2014-08-i20 21:03)
  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="the_witcher_2"
  13. PREFIX="TheWitcher2_gog"
  14. WORKING_WINE_VERSION="1.7.20"
  15. TITLE="GOG.com - The Witcher 2: Assassins of Kings Enhanced Edition"
  16. POL_SetupWindow_Init
  17. POL_Deug_Init
  18. POL_SetupWindow_presentation "$TITLE" "CD Projekt RED" "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 "/nogui"
  23. POL_Call POL_Install_d3dx9_36
  24. POL_Call POL_Install_vcrun2010
  25. POL_Call POL_Install_dotnet40
  26. Set_OS winxp
  27. # Configure the shortcut
  28. GOGPATH="$GOGROOT/The Witcher 2 Enhanced Edition"
  29. POL_Shortcut "Launcher.exe" "The Witcher 2: Assassins of Kings Enhanced Edition" "" "" "Game;"
  30. # Language selection for the manual shortcut
  31. 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~cz: Czech~hu: Hungarian~jp: Japanese~ru: Russian~tr: Turkish~zh: Chinese" "~"
  32. MAN_LANG=$(echo "${APP_ANSWER}" | cut -d ':' -f 1)
  33. POL_Shortcut_Document "The Witcher 2: Assassins of Kings Enhanced Edition" "$GOGPATH/manual_$MAN_LANG.pdf"
  34. POL_SetupWindow_Close
  35. exit 0