Joshun

Script: Gamecheats2

May 10th, 2011
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.01 KB | None | 0 0
  1. #!/bin/bash -x
  2. #Cheats for popular Linux games
  3. #Warning! This may overwite your previous game saves, back them up or rename them first.
  4. cheat=$(zenity --list \
  5. --title="Linux Game Cheats" \
  6. --text="Select a cheat:" \
  7. --checklist \
  8. --column "" --column="Cheat" \
  9. FALSE "Epiphany" \
  10. FALSE "Supertux" \
  11. FALSE "Supertux2" \
  12. FALSE "Supertuxkart" \
  13. FALSE "Secret Maryo Chronicles")
  14. #Supertuxkart Cheat
  15. if [[ "$cheat" =~ "Supertuxkart" ]]; then mkdir ~/.config/supertuxkart; cp -R ./cheats/supertuxkart/* ~/.config/supertuxkart; exit; fi
  16. #Supertux 2 Cheat
  17. if [[ "$cheat" =~ "Supertux2" ]]; then mkdir ~/.supertux2; cp -R ./cheats/supertux2/* ~/.supertux2; exit; fi
  18. #Secret Maryo Chronicles Cheat
  19. if [[ "$cheat" =~ "Secret Maryo Chronicles" ]]; then mkdir ~/.smc; cp -R ./cheats/smc/* ~/.smc; exit; fi
  20. #Supertux Cheat
  21. if [[ "$cheat" =~ "Supertux" ]]; then mkdir ~/.supertux; cp -R ./cheats/supertux/* ~/.supertux/; exit; fi
  22. #Epiphany Cheat
  23. if [[ "$cheat" =~ "Epiphany" ]]; then cp -R ./cheats/epiphany/.* ~/; exit; fi
Advertisement
Add Comment
Please, Sign In to add comment