Added the ability to use a settings file. See audiogame-manager -h for details.
This commit is contained in:
parent
7f4a3f13cc
commit
c193d0a417
@ -434,6 +434,14 @@ help() {
|
||||
for i in "${!command[@]}" ; do
|
||||
echo "-${i/:/ <parameter>}: ${command[${i}]}"
|
||||
done | sort
|
||||
echo
|
||||
echo "Some settings that are often used can be stored in a settings.conf file."
|
||||
echo "If wanted, place it at ${configFile%/*}/settings.conf."
|
||||
echo "The syntax is variable=\"value\""
|
||||
echo
|
||||
echo "noCache=\"true\" # Do not keep downloaded items in the cache."
|
||||
echo "norh=\"true\" # Do not install RHVoice."
|
||||
echo "redownload=\"true\" # Redownload sources, do not use the version stored in cache."
|
||||
exit 0
|
||||
}
|
||||
|
||||
@ -1022,6 +1030,10 @@ for i in curl sox wget wine winetricks ; do
|
||||
done
|
||||
# Get latest news if available
|
||||
check_news
|
||||
# Load any arguments from settings.conf file
|
||||
if [[ -r "${configFile%/*}/settings.conf" ]]; then
|
||||
source "${configFile%/*}/settings.conf"
|
||||
fi
|
||||
# With no arguments, open the game launcher.
|
||||
if [[ $# -eq 0 ]]; then
|
||||
game_launcher
|
||||
|
Loading…
Reference in New Issue
Block a user