Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2018
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. #!/bin/bash
  2. # Lefty420 Wine game loader script for use with attract mode.
  3. #
  4. #
  5. # Edit the code below to suit your setup you will have to create a new script for every game!!
  6. # This isn't an auto script its intended to launch games via wine on attract mode in linux
  7. # Save the file after editing as the desired game name for example Cuphead.sh
  8. # make sure to run chmod +x gamename.sh in a terminal after saving this script
  9. #
  10. # Atract mode Configuration
  11. #
  12. # Set Attract mode's "emulator cfg" windows games.cfg executable to /user/bin/bash and romtext to .sh as seen below.
  13. #
  14. # Example of Windows Games.cfg
  15. #
  16. # Generated by Attract-Mode v2.4.1
  17. #
  18. # executable /bin/bash
  19. # args "[romfilename]"
  20. # rompath /media/2tb/roms/linux # <----- my finished .sh scripts location
  21. # romext .sh;.SH
  22. # system PC
  23. # info_source thegamesdb.net
  24. # artwork boxart /media/2tb/roms/linux/boxart
  25. # artwork cartart /media/2tb/roms/linux/cartart
  26. # artwork flyer /media/2tb/roms/linux/boxart
  27. # artwork marquee /media/2tb/roms/linux/marquee
  28. # artwork snap /media/2tb/roms/linux/snap
  29. # artwork wheel /media/2tb/roms/linux/wheel
  30. #
  31. #
  32. # Ok Lets begin !!! Only edit the lines that are not hashed out #
  33. #
  34. # Choose Architecture from below (make sure it matches your wineprefix you plan on using)
  35. #
  36. # For example
  37. # export WINARCH="win32"
  38. # export WINARCH="win642"
  39. #
  40. export WINARCH="win32"
  41. #
  42. # Choose your wineprefix location
  43. # For example
  44. # export WINEPREFIX="/home/user/.wine"
  45. #
  46. export WINEPREFIX="/home/lefty/.wineff"
  47. #
  48. # Choose Your wine executable
  49. # For example
  50. # WINE="/opt/wine-devel/bin/wine"
  51. # WINE="/opt/wine-staging/bin/wine"
  52. # WINE="/usr/bin/wine"
  53. #
  54. WINE="/opt/wine-staging/bin/wine"
  55. #
  56. # Add your game directory
  57. # For Example
  58. # GAMEDIR="/media/2tb/wine/Cuphead/"
  59. #
  60. GAMEDIR="/media/2tb/wine/Cuphead/"
  61. #
  62. # Add your game's executable
  63. # For example
  64. # GAMEEXE="${GAMEDIR}Cuphead.exe"
  65. # Replace Cupehead.exe with your game's exe
  66. #
  67. GAMEEXE="${GAMEDIR}Cuphead.exe"
  68. # no more editing save your file as your desired game name make it executable and always test by runing ./gamename.sh in terminal if
  69. # it runs in terminal it will run from attract mode.
  70. #
  71. # Extra wine options delete # if needed
  72. #${WINE}server -k
  73. #${WINE}cfg
  74. #
  75. $WINE $GAMEEXE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement