mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-26 18:04:19 +00:00
Add backwards compatibility check for the user dir
This commit is contained in:
parent
8fa64ca1ed
commit
d8b8b47262
@ -682,7 +682,12 @@ getdirs() {
|
||||
# $game_version is set in the version_menu() function
|
||||
############################################################################
|
||||
# The game's user directory
|
||||
user_dir="$game_path/$game_version/user/client/0"
|
||||
if [ -d "$game_path/$game_version/USER/Client" ]; then
|
||||
# Backwards compatibility for older installs
|
||||
user_dir="$game_path/$game_version/USER/Client/0"
|
||||
else
|
||||
user_dir="$game_path/$game_version/user/client/0"
|
||||
fi
|
||||
# The location within the USER directory to which the game exports keybinds
|
||||
keybinds_dir="$user_dir/Controls/Mappings"
|
||||
# game data mask
|
||||
|
Loading…
Reference in New Issue
Block a user