Skip to content

Instantly share code, notes, and snippets.

@KockaAdmiralac
Created October 6, 2022 20:15
Show Gist options
  • Save KockaAdmiralac/a537b33bc0eaaa1169a53a72290c7fbc to your computer and use it in GitHub Desktop.
Save KockaAdmiralac/a537b33bc0eaaa1169a53a72290c7fbc to your computer and use it in GitHub Desktop.
set -e
cd ~/.local/share/Steam/steamapps/common/OneShot
mkdir old
find . -mindepth 1 -maxdepth 1 -name "*.so*" -exec mv {} old \;
# Journal is not going to list libraries through ldd
mv old/*.cpython-37m-x86_64-linux-gnu.so .
mv old/libpython3.7m.so.1.0 .
fix_libraries() {
missing_libraries=$(ldd "$1" | grep "not found" | cut -d" " -f1 | cut -d$'\t' -f2)
for library in $missing_libraries
do
mv "old/$library" .
done
}
fix_libraries oneshot
fix_libraries oneshot
fix_libraries oneshot
fix_libraries oneshot
fix_libraries oneshot # Just in case
fix_libraries steamshim
fix_libraries steamshim
fix_libraries steamshim
fix_libraries _______
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment