Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Path to steam games for easy reference
- steam=""/cygdrive/c/Program Files (x86)/Steam/Steam.exe" -applaunch"
- #Names user will need to input
- declare -a name=("beamng"
- "bejeweled3"
- "caode"
- "citiesskylines"
- "css"
- "criticalannihilation"
- "doom3"
- "skyrim"
- "skyrimse"
- "fallout4"
- "fate"
- "theforest"
- "goatsimulator"
- "gtav"
- "gutsandglory"
- "hatred"
- "il2"
- "ksp"
- "kingdomcomedeliverance"
- "l4d2"
- "lichdombattlemage"
- "mafia2"
- "magicka"
- "nationred"
- "nomanssky"
- "poe"
- "redfactionguerrilla"
- "saltandsanctuary"
- "scribblenauts"
- "shadowarrior"
- "civv"
- "civvi"
- "stanleyparable"
- "starwarstfu"
- "starbound"
- "starboundunstable"
- "swordwithsauce"
- "tf2"
- "terraria"
- "uebs"
- "universesandbox"
- "wreckfest"
- "wreckfestthrowasanta")
- #Paths to the above programs
- declare -a path=("$steam/BeamNG.Drive/BeamNG.drive.exe"
- "$steam/Bejeweled 3/Bejeweled3.exe"
- "$steam/Children of a Dead Earth/CDE.exe"
- "$steam/Cities_Skylines/Cities.exe"
- "$steam 240")
- size=${#name[@]}
- let "size-=1"
- ctr=0
- if [ "$1" != "-l" ]
- then
- for i in "${name[@]}"
- do
- #echo Checking if "$1" equals "${name[$ctr]}"
- if [ "$1" = "${name[$ctr]}" ]
- then
- run "${path[$ctr]}"
- echo run "${path[$ctr]}"
- break
- elif [ $ctr -eq $size ]
- then
- "$1"
- break
- fi
- let "ctr+=1"
- echo $ctr
- done
- fi
- #run "/cygdrive/c/Program Files (x86)/Steam/Steam.exe" -applaunch 240
Add Comment
Please, Sign In to add comment