From d8b8b47262edd81e7d3951357e376cd4eeea56aa Mon Sep 17 00:00:00 2001 From: "the Sane." <3657071+the-sane@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:19:55 -0400 Subject: [PATCH] Add backwards compatibility check for the user dir --- lug-helper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index ce5496f..eaeb1af 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -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