Guest User

Untitled

a guest
Jul 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Path to steam games for easy reference
  4. steam=""/cygdrive/c/Program Files (x86)/Steam/Steam.exe" -applaunch"
  5.  
  6. #Names user will need to input
  7. declare -a name=("beamng"
  8. "bejeweled3"
  9. "caode"
  10. "citiesskylines"
  11. "css"
  12. "criticalannihilation"
  13. "doom3"
  14. "skyrim"
  15. "skyrimse"
  16. "fallout4"
  17. "fate"
  18. "theforest"
  19. "goatsimulator"
  20. "gtav"
  21. "gutsandglory"
  22. "hatred"
  23. "il2"
  24. "ksp"
  25. "kingdomcomedeliverance"
  26. "l4d2"
  27. "lichdombattlemage"
  28. "mafia2"
  29. "magicka"
  30. "nationred"
  31. "nomanssky"
  32. "poe"
  33. "redfactionguerrilla"
  34. "saltandsanctuary"
  35. "scribblenauts"
  36. "shadowarrior"
  37. "civv"
  38. "civvi"
  39. "stanleyparable"
  40. "starwarstfu"
  41. "starbound"
  42. "starboundunstable"
  43. "swordwithsauce"
  44. "tf2"
  45. "terraria"
  46. "uebs"
  47. "universesandbox"
  48. "wreckfest"
  49. "wreckfestthrowasanta")
  50.  
  51. #Paths to the above programs
  52. declare -a path=("$steam/BeamNG.Drive/BeamNG.drive.exe"
  53. "$steam/Bejeweled 3/Bejeweled3.exe"
  54. "$steam/Children of a Dead Earth/CDE.exe"
  55. "$steam/Cities_Skylines/Cities.exe"
  56. "$steam 240")
  57.  
  58. size=${#name[@]}
  59. let "size-=1"
  60.  
  61. ctr=0
  62.  
  63. if [ "$1" != "-l" ]
  64. then
  65. for i in "${name[@]}"
  66. do
  67. #echo Checking if "$1" equals "${name[$ctr]}"
  68.  
  69. if [ "$1" = "${name[$ctr]}" ]
  70. then
  71. run "${path[$ctr]}"
  72. echo run "${path[$ctr]}"
  73. break
  74. elif [ $ctr -eq $size ]
  75. then
  76. "$1"
  77. break
  78. fi
  79.  
  80. let "ctr+=1"
  81. echo $ctr
  82.  
  83. done
  84. fi
  85.  
  86. #run "/cygdrive/c/Program Files (x86)/Steam/Steam.exe" -applaunch 240
Add Comment
Please, Sign In to add comment