Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Lefty420 Wine game loader script for use with attract mode.
- #
- #
- # Edit the code below to suit your setup you will have to create a new script for every game!!
- # This isn't an auto script its intended to launch games via wine on attract mode in linux
- # Save the file after editing as the desired game name for example Cuphead.sh
- # make sure to run chmod +x gamename.sh in a terminal after saving this script
- #
- # Atract mode Configuration
- #
- # Set Attract mode's "emulator cfg" windows games.cfg executable to /user/bin/bash and romtext to .sh as seen below.
- #
- # Example of Windows Games.cfg
- #
- # Generated by Attract-Mode v2.4.1
- #
- # executable /bin/bash
- # args "[romfilename]"
- # rompath /media/2tb/roms/linux # <----- my finished .sh scripts location
- # romext .sh;.SH
- # system PC
- # info_source thegamesdb.net
- # artwork boxart /media/2tb/roms/linux/boxart
- # artwork cartart /media/2tb/roms/linux/cartart
- # artwork flyer /media/2tb/roms/linux/boxart
- # artwork marquee /media/2tb/roms/linux/marquee
- # artwork snap /media/2tb/roms/linux/snap
- # artwork wheel /media/2tb/roms/linux/wheel
- #
- #
- # Ok Lets begin !!! Only edit the lines that are not hashed out #
- #
- # Choose Architecture from below (make sure it matches your wineprefix you plan on using)
- #
- # For example
- # export WINARCH="win32"
- # export WINARCH="win642"
- #
- export WINARCH="win32"
- #
- # Choose your wineprefix location
- # For example
- # export WINEPREFIX="/home/user/.wine"
- #
- export WINEPREFIX="/home/lefty/.wineff"
- #
- # Choose Your wine executable
- # For example
- # WINE="/opt/wine-devel/bin/wine"
- # WINE="/opt/wine-staging/bin/wine"
- # WINE="/usr/bin/wine"
- #
- WINE="/opt/wine-staging/bin/wine"
- #
- # Add your game directory
- # For Example
- # GAMEDIR="/media/2tb/wine/Cuphead/"
- #
- GAMEDIR="/media/2tb/wine/Cuphead/"
- #
- # Add your game's executable
- # For example
- # GAMEEXE="${GAMEDIR}Cuphead.exe"
- # Replace Cupehead.exe with your game's exe
- #
- GAMEEXE="${GAMEDIR}Cuphead.exe"
- # no more editing save your file as your desired game name make it executable and always test by runing ./gamename.sh in terminal if
- # it runs in terminal it will run from attract mode.
- #
- # Extra wine options delete # if needed
- #${WINE}server -k
- #${WINE}cfg
- #
- $WINE $GAMEEXE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement