@@ -133,7 +133,7 @@ $filtered_result"
133
133
134
134
# Function to search for compatdata paths in known steamapps directories
135
135
find_compatdata_paths () {
136
- printf " %b\n" " ${YELLOW} Searching for Fallout 76 compatdata paths...${RC} "
136
+ printf " %b\n" " ${YELLOW} Searching for Fallout 76 compatdata paths...${RC} " >&2
137
137
138
138
if ! find_steamapps_dirs; then
139
139
return 1
@@ -161,8 +161,8 @@ find_compatdata_paths() {
161
161
162
162
# Function to search for common game paths in known steamapps directories
163
163
find_common_paths () {
164
- printf " %b\n" " ${YELLOW} Searching for Fallout 76 common game paths...${RC} "
165
-
164
+ printf " %b\n" " ${YELLOW} Searching for Fallout 76 common game paths...${RC} " >&2
165
+
166
166
if ! find_steamapps_dirs; then
167
167
return 1
168
168
fi
@@ -180,7 +180,7 @@ find_common_paths() {
180
180
IFS=' '
181
181
182
182
if [ -z " $common_paths " ]; then
183
- printf " %b\n" " ${RED} No common game folders found.${RC} "
183
+ printf " %b\n" " ${RED} No common game folders found.${RC} " >&2
184
184
return 1
185
185
fi
186
186
@@ -414,15 +414,15 @@ prepare_path_selection() {
414
414
}
415
415
416
416
# Main execution starts here
417
-
418
- # Get compatdata paths
419
- compatdata_paths=$( find_compatdata_paths)
417
+ find_steamapps_dirs
420
418
if [ $? -ne 0 ]; then
419
+ printf " %b\n" " ${RED} Cannot proceed without Steam library folders.${RC} "
421
420
exit 1
422
421
fi
423
422
424
- # Select compatdata path
425
- printf " %b\n" " ${CYAN} Step 1: Select the compatdata path for Fallout 76 settings${RC} "
423
+
424
+ # Get compatdata paths
425
+ compatdata_paths=$( find_compatdata_paths)
426
426
prepare_path_selection " $compatdata_paths "
427
427
menu_title=" Please select the compatdata path (for game settings):"
428
428
select_path
436
436
437
437
# Get common game paths
438
438
common_paths=$( find_common_paths)
439
- if [ $? -ne 0 ]; then
440
- exit 1
441
- fi
442
-
443
439
# Select common game path
444
- printf " %b\n" " ${CYAN} Step 2: Select the common game installation path${RC} "
445
440
prepare_path_selection " $common_paths "
446
441
menu_title=" Please select the common game installation path:"
447
442
select_path
0 commit comments