the_witcher_2.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="Witcher2_gog"
  14. WORKING_WINE_VERSION="1.7.20"
  15. TITLE="GOG.com - Witcher 2: Assassins of Kings"
  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_d3dx9_43
  25. Set_OS winxp
  26. # Configure the shortcut
  27. GOGPATH="$GOGROOT/The Witcher 2 Enhanced Edition"
  28. POL_Shortcut "Launcher.exe" "Witcher 2: Assassins of Kings" "" "" "Game;"
  29. # Language selection for the manual shortcut
  30. 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" "~"
  31. MAN_LANG=$(echo "${APP_ANSWER}" | cut -d ':' -f 1)
  32. POL_Shortcut_Document "Witcher 2: Assassins of Kings" "$GOGPATH/manual_$MAN_LANG.pdf"
  33. POL_SetupWindow_Close
  34. exit 0