Added debug flag.

This commit is contained in:
Storm Dragon 2020-12-12 16:14:48 -05:00
parent a2504dcd7e
commit 763b6887f5

View File

@ -463,6 +463,7 @@ fi
# Array of command line arguments # Array of command line arguments
declare -A command=( declare -A command=(
[c]="Check your system for necessary components." [c]="Check your system for necessary components."
[d]="debug mode, wine will be much more verbose when games are launched with this flag."
[h]="This help screen." [h]="This help screen."
[i]="Install games." [i]="Install games."
[l:]="launch given game without interactive audiogame-manager menu specified by its wine bottle." [l:]="launch given game without interactive audiogame-manager menu specified by its wine bottle."
@ -476,6 +477,10 @@ args="${args//[[:space:]]/}"
while getopts "${args}" i ; do while getopts "${args}" i ; do
case "$i" in case "$i" in
c) checklist;; c) checklist;;
d)
unset WINEDEBUG
game_launcher
;;
h) help;; h) help;;
i) game_installer;; i) game_installer;;
l) game_launcher "${OPTARG}";; l) game_launcher "${OPTARG}";;