fixing reconfig process
authorChris Koeritz <fred@gruntose.com>
Wed, 7 Feb 2018 17:40:36 +0000 (12:40 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 7 Feb 2018 17:40:36 +0000 (12:40 -0500)
needs to redo aliases and other assets, but currently is not.  trying simplest approach first, by loading the launcher script at the end of having reconfigured everything.
also added a link maker for fallout new vegas, to try to make running on wine a bit less of a hellfest.

scripts/core/reconfigure_feisty_meow.sh
scripts/customize/fred/scripts/games/fallout_new_vegas_link_fixer.sh [new file with mode: 0644]

index 2224c716e3f0e12ab664b6757919716764867169..081fb96fc500e2765f8022ab85f658089258e9b3 100644 (file)
@@ -81,3 +81,6 @@ if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then
   echo ==============
 fi
 
+# now try a full reload to get latest aliases and everything.
+source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+
diff --git a/scripts/customize/fred/scripts/games/fallout_new_vegas_link_fixer.sh b/scripts/customize/fred/scripts/games/fallout_new_vegas_link_fixer.sh
new file mode 100644 (file)
index 0000000..a9a8ed8
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+# sets up links to make fallout new vegas work properly under wine.
+# some mods will look for paths that are incorrectly case sensitive, and this
+# script just sets up all those links that we believe are required.
+
+source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+
+if [ ! -d Data ]; then
+  echo '
+This script needs to run from the "Fallout New Vegas" install directory,
+which is usually found under "steam/steamapps/common".
+'
+  exit 1
+fi
+
+function make_local_dir_link()
+{
+  dir="$1"; shift
+  name="$1"; shift
+  new_name="$1"; shift
+  pushd "$dir" &>/dev/null
+  if [ -L "$new_name" ]; then
+    echo "Skipping creation of existing link $dir/$new_name"
+    popd &>/dev/null
+    return
+  fi
+  if [ ! -d "$name" ]; then
+    echo "Skipping creation of link $dir/$new_name due to missing directory $dir/$name"
+    popd &>/dev/null
+    return
+  fi
+  ln -s "$name" "$new_name"
+  test_or_die "creating link for $dir/$new_name from $dir/$name"
+  echo "Created link $dir/$new_name from $dir/$name"
+  popd &>/dev/null
+}
+
+make_local_dir_link Data Sound sound
+make_local_dir_link Data Textures textures
+make_local_dir_link Data Meshes meshes
+make_local_dir_link Data/Meshes Landscape landscape
+make_local_dir_link Data/Meshes Weapons weapons
+make_local_dir_link Data/Sound Voice voice
+make_local_dir_link Data/Textures Landscape landscape
+make_local_dir_link Data/Textures Landscape weapons
+make_local_dir_link Data/Textures Landscape clutter
+