From a2594c3af3cbfc578eb05756daaeeee6666d5c67 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sun, 27 Dec 2020 16:45:31 -0500 Subject: [PATCH] Add contributors and function sections --- lug-helper.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index ef7fd2f..9a01bab 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -25,6 +25,9 @@ # To import your keybinds from within the game, select them from the list: # Options->Keybindings->Control Profiles # +# +# Author: https://github.com/the-sane +# Contributor: https://github.com/Termuellinator ############################################################################ wine_conf="winedir.conf" @@ -276,7 +279,7 @@ getdirs() { return 1 fi if [ ! -d "$conf_dir/$conf_subdir" ]; then - mkdir "$conf_dir/$conf_subdir" + mkdir -p "$conf_dir/$conf_subdir" fi # Check if the config files already exist @@ -472,6 +475,8 @@ sanitize() { fi } +#------------------------- begin mapcount functions --------------------------# + # Check if setting vm.max_map_count was successful mapcount_check() { if [ "$(cat /proc/sys/vm/max_map_count)" -lt 16777216 ]; then @@ -548,6 +553,10 @@ mapcount_set() { menu } +#-------------------------- end mapcount functions ---------------------------# + +#------------------------ begin filelimit functions --------------------------# + # Check if setting the open file descriptors limit was successful filelimit_check() { if [ "$(ulimit -Hn)" -lt 524288 ]; then @@ -588,6 +597,9 @@ filelimit_set() { filelimit_check } +#------------------------- end filelimit functions ---------------------------# + + # Delete the shaders directory rm_shaders() { # Get/Set directory paths @@ -640,6 +652,8 @@ rm_vidcache() { fi } +#------------------------- begin runner functions ----------------------------# + # Restart lutris lutris_restart() { if [ "$lutris_needs_restart" = "true" ]; then @@ -850,6 +864,9 @@ runner_manage() { lutris_restart } +#-------------------------- end runner functions -----------------------------# + + # Toggle between targeting the LIVE and PTU game directories for all helper functions set_version() { if [ "$live_or_ptu" = "LIVE" ]; then