mirror of
https://gist.github.com/3793a40dd0c7930f12b79ca1931a3296.git
synced 2025-06-18 11:15:32 -04:00
This commit is contained in:
parent
3b63c55b88
commit
9f65e3b84d
@ -31,13 +31,9 @@ fi
|
||||
###################################################################################
|
||||
if [ "$ERROR" == "0" ]; then
|
||||
echo "Finding CIA headers in file..."
|
||||
# od -t x -A d "${INPUT_FILE}" | grep "00002020 00000000 00000a00 00000350" | sed 's/ .*//' | sed 's/^0*//' > romfs-dir.txt
|
||||
od -t x -A d "${INPUT_FILE}" | grep "00002020 00000000 00000a00 00000350" | sed 's/ .*//' | sed 's/^0*//' > romfs-dir.txt
|
||||
# Get start address of every CIA header and store to file
|
||||
|
||||
od -t x -A d "${INPUT_FILE}" | grep "00002020 00000000 00000000 00000378" | sed 's/ .*//' | sed 's/^0*//' > romfs-dir.txt
|
||||
# Different header for leftover cnt in "ctr.7z/ctr/sources/firmware/CTR-Kernel/updater1st/UpdaterCardImage/Default/Contents_11_without_shareddate.cnt"
|
||||
# I haven't seen this anywhere else so disable for everything but the above file.
|
||||
|
||||
echo "Found all headers!"
|
||||
echo "================================================="
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user