mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-29 05:49: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:
|
||||
# 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user