mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-27 09:24: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
|
# $game_version is set in the version_menu() function
|
||||||
############################################################################
|
############################################################################
|
||||||
# The game's user directory
|
# 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
|
# The location within the USER directory to which the game exports keybinds
|
||||||
keybinds_dir="$user_dir/Controls/Mappings"
|
keybinds_dir="$user_dir/Controls/Mappings"
|
||||||
# game data mask
|
# game data mask
|
||||||
|
Loading…
Reference in New Issue
Block a user