Skip to content

Instantly share code, notes, and snippets.

@xerpi
Last active November 30, 2017 08:01
Show Gist options
  • Save xerpi/4329abb64c0a09c5b199f68ce4a7ad6f to your computer and use it in GitHub Desktop.
Save xerpi/4329abb64c0a09c5b199f68ce4a7ad6f to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$#" -lt 1 ]; then
echo -e "Usage:\n\t$0 SceFoo_0xXXXXXXXX_segY.bin"
exit 1
fi
if [[ -z "${VITA_DB_YML}" ]]; then
echo "Error: db.yml file not found, make sure to set VITA_DB_YML."
exit 1
fi
if [ ! -f $1 ]; then
echo "Error: file not found!"
exit 1
fi
addr=`echo $(basename $1) | cut -d "_" -f 2`
prxtool -c -b -n "${VITA_DB_YML}" -r $addr $1 > $1.idc
echo -e "Output file: $1.idc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment