Skip to content

Instantly share code, notes, and snippets.

@xerpi
Last active October 13, 2023 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xerpi/8761c5c8cb88d3a90b73bac053cb4e1c to your computer and use it in GitHub Desktop.
Save xerpi/8761c5c8cb88d3a90b73bac053cb4e1c to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$#" -lt 1 ]; then
echo -e "Usage:\n\t$0 directory"
exit 1
fi
if [ -z "$VITASDK" ]; then
echo -e "Error: VITASDK is not set."
exit 1
fi
if [ ! -d $1 ]; then
echo "Error: directory not found!"
exit 1
fi
for file in $1/*_seg0.bin
do
name=`echo $(basename $file) | rev | cut -d "_" -f 1,2 --complement | rev`
addr=`echo $(basename $file) | rev | cut -d "_" -f 2 | rev`
vita-nid-finder-flow $file $name $addr
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment