Last active
November 30, 2017 08:01
-
-
Save xerpi/4329abb64c0a09c5b199f68ce4a7ad6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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