From 325c366f8d972c3eaa58e0ec0278f076d68a707a Mon Sep 17 00:00:00 2001 From: Leo Coogan Date: Fri, 19 Mar 2021 16:47:00 -0400 Subject: [PATCH] Added scripts --- COPYRIGHT.txt | 4 ++++ README.md | 2 ++ bin/repack | 4 ++++ bin/unpack | 4 ++++ 4 files changed, 14 insertions(+) create mode 100755 bin/repack create mode 100755 bin/unpack diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index 5d071e6..45973d1 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -29,3 +29,7 @@ matrix-decrypt is licensed under ISC. A license copy is provided in LICENSES/ISC Copyright (c) 2018 Damir Jelić gplopnm - Copyright (c) 2021 Liam Quin (https://www.delightfulcomputing.com/). All Rights Reserved. + +unpack is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt. + +repack is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt. diff --git a/README.md b/README.md index b39b8a6..7f0e94a 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,5 @@ Scripts I and others have made out of necessity. | ugrade | Upgrade packages for every package manager. | | yt-dl | youtube-dl "magic" download. | | yt-mpeg | Turn wav/cover image into a video optimised for yt. | +| unpack | Completely unpack an NDS rom with `ndstool`. | +| repack | Completely repack an NDS rom with `ndstool`. | diff --git a/bin/repack b/bin/repack new file mode 100755 index 0000000..13e9676 --- /dev/null +++ b/bin/repack @@ -0,0 +1,4 @@ +#!/bin/dash +echo ROM? +read rom +ndstool -c $rom -9 arm9.bin -9i arm9i.bin -7 arm7.bin -7i arm7i.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin diff --git a/bin/unpack b/bin/unpack new file mode 100755 index 0000000..66a8870 --- /dev/null +++ b/bin/unpack @@ -0,0 +1,4 @@ +#1/bin/dash +echo ROM? +read rom +ndstool -x $rom -9 arm9.bin -9i arm9i.bin -7 arm7.bin -7i arm7i.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin