mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-30 18:59:02 +00:00
Add contributors and function sections
This commit is contained in:
parent
e63893f50a
commit
a2594c3af3
@ -25,6 +25,9 @@
|
|||||||
# To import your keybinds from within the game, select them from the list:
|
# To import your keybinds from within the game, select them from the list:
|
||||||
# Options->Keybindings->Control Profiles
|
# Options->Keybindings->Control Profiles
|
||||||
#
|
#
|
||||||
|
#
|
||||||
|
# Author: https://github.com/the-sane
|
||||||
|
# Contributor: https://github.com/Termuellinator
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
wine_conf="winedir.conf"
|
wine_conf="winedir.conf"
|
||||||
@ -276,7 +279,7 @@ getdirs() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$conf_dir/$conf_subdir" ]; then
|
if [ ! -d "$conf_dir/$conf_subdir" ]; then
|
||||||
mkdir "$conf_dir/$conf_subdir"
|
mkdir -p "$conf_dir/$conf_subdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if the config files already exist
|
# Check if the config files already exist
|
||||||
@ -472,6 +475,8 @@ sanitize() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#------------------------- begin mapcount functions --------------------------#
|
||||||
|
|
||||||
# Check if setting vm.max_map_count was successful
|
# Check if setting vm.max_map_count was successful
|
||||||
mapcount_check() {
|
mapcount_check() {
|
||||||
if [ "$(cat /proc/sys/vm/max_map_count)" -lt 16777216 ]; then
|
if [ "$(cat /proc/sys/vm/max_map_count)" -lt 16777216 ]; then
|
||||||
@ -548,6 +553,10 @@ mapcount_set() {
|
|||||||
menu
|
menu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#-------------------------- end mapcount functions ---------------------------#
|
||||||
|
|
||||||
|
#------------------------ begin filelimit functions --------------------------#
|
||||||
|
|
||||||
# Check if setting the open file descriptors limit was successful
|
# Check if setting the open file descriptors limit was successful
|
||||||
filelimit_check() {
|
filelimit_check() {
|
||||||
if [ "$(ulimit -Hn)" -lt 524288 ]; then
|
if [ "$(ulimit -Hn)" -lt 524288 ]; then
|
||||||
@ -588,6 +597,9 @@ filelimit_set() {
|
|||||||
filelimit_check
|
filelimit_check
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#------------------------- end filelimit functions ---------------------------#
|
||||||
|
|
||||||
|
|
||||||
# Delete the shaders directory
|
# Delete the shaders directory
|
||||||
rm_shaders() {
|
rm_shaders() {
|
||||||
# Get/Set directory paths
|
# Get/Set directory paths
|
||||||
@ -640,6 +652,8 @@ rm_vidcache() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#------------------------- begin runner functions ----------------------------#
|
||||||
|
|
||||||
# Restart lutris
|
# Restart lutris
|
||||||
lutris_restart() {
|
lutris_restart() {
|
||||||
if [ "$lutris_needs_restart" = "true" ]; then
|
if [ "$lutris_needs_restart" = "true" ]; then
|
||||||
@ -850,6 +864,9 @@ runner_manage() {
|
|||||||
lutris_restart
|
lutris_restart
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#-------------------------- end runner functions -----------------------------#
|
||||||
|
|
||||||
|
|
||||||
# Toggle between targeting the LIVE and PTU game directories for all helper functions
|
# Toggle between targeting the LIVE and PTU game directories for all helper functions
|
||||||
set_version() {
|
set_version() {
|
||||||
if [ "$live_or_ptu" = "LIVE" ]; then
|
if [ "$live_or_ptu" = "LIVE" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user