mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-11-11 04:47:49 +00:00
CustomCharacters directory and shader directory variable name
This commit is contained in:
parent
12a05a01ae
commit
8fa64ca1ed
@ -686,7 +686,7 @@ getdirs() {
|
|||||||
# 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
|
||||||
game_data_mask="sc-alpha-*"
|
appdata_dir_mask="sc-alpha-*"
|
||||||
# Custom Characters
|
# Custom Characters
|
||||||
custom_characters_dir="$user_dir/CustomCharacters"
|
custom_characters_dir="$user_dir/CustomCharacters"
|
||||||
# dxvk cache file
|
# dxvk cache file
|
||||||
@ -2077,8 +2077,8 @@ rm_userdir() {
|
|||||||
|
|
||||||
#Back up characters
|
#Back up characters
|
||||||
if [ "$characters_exported" -eq 1 ]; then
|
if [ "$characters_exported" -eq 1 ]; then
|
||||||
debug_print continue "Backing up characters to $backup_path/custom_characters..."
|
debug_print continue "Backing up characters to $backup_path/CustomCharacters..."
|
||||||
mkdir -p "$backup_path/custom_characters" && cp -r "$custom_characters_dir/." "$backup_path/custom_characters/"
|
mkdir -p "$backup_path/CustomCharacters" && cp -r "$custom_characters_dir/." "$backup_path/CustomCharacters/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Wipe the user directory
|
# Wipe the user directory
|
||||||
@ -2095,7 +2095,7 @@ rm_userdir() {
|
|||||||
# Restore custom characters
|
# Restore custom characters
|
||||||
if [ "$characters_exported" -eq 1 ]; then
|
if [ "$characters_exported" -eq 1 ]; then
|
||||||
debug_print continue "Restoring custom characters..."
|
debug_print continue "Restoring custom characters..."
|
||||||
mkdir -p "$custom_characters_dir" && cp -r "$backup_path/custom_characters/." "$custom_characters_dir/"
|
mkdir -p "$custom_characters_dir" && cp -r "$backup_path/CustomCharacters/." "$custom_characters_dir/"
|
||||||
message info "To re-import your character, select it in-game from the list."
|
message info "To re-import your character, select it in-game from the list."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2113,8 +2113,7 @@ rm_shaders() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Loop through all possible shader directories
|
# Loop through all possible shader directories
|
||||||
for appdata_dir in "$wine_prefix/$appdata_path"/$game_data_mask; do
|
for appdata_dir in "$wine_prefix/$appdata_path"/$appdata_dir_mask; do
|
||||||
debug_print continue "appdata_dir is $appdata_dir"
|
|
||||||
# Loop through the shaders subdir array
|
# Loop through the shaders subdir array
|
||||||
for shaders_subdir in "${shaders_subdirs[@]}"; do
|
for shaders_subdir in "${shaders_subdirs[@]}"; do
|
||||||
if [ -d "$appdata_dir/$shaders_subdir" ]; then
|
if [ -d "$appdata_dir/$shaders_subdir" ]; then
|
||||||
@ -2313,9 +2312,9 @@ install_game() {
|
|||||||
|
|
||||||
# Run the appropriate installer
|
# Run the appropriate installer
|
||||||
if [ "$install_version" = "native" ]; then
|
if [ "$install_version" = "native" ]; then
|
||||||
lutris && lutris --install "$install_script" &
|
lutris --install "$install_script" &
|
||||||
elif [ "$install_version" = "flatpak" ]; then
|
elif [ "$install_version" = "flatpak" ]; then
|
||||||
flatpak run net.lutris.Lutris && flatpak run --file-forwarding net.lutris.Lutris --install @@ "$install_script" @@ &
|
flatpak run --file-forwarding net.lutris.Lutris --install @@ "$install_script" @@ &
|
||||||
else
|
else
|
||||||
# We shouldn't get here
|
# We shouldn't get here
|
||||||
debug_print exit "Script error: Unknown condition for install_version in install_game() function. Aborting."
|
debug_print exit "Script error: Unknown condition for install_version in install_game() function. Aborting."
|
||||||
|
Loading…
Reference in New Issue
Block a user