From 7e51b0987ffc60476ebab68f4b54523fa3bb9a66 Mon Sep 17 00:00:00 2001 From: David Benepe Date: Sun, 28 Jun 2020 21:11:09 -0500 Subject: [PATCH] Updated README.md and make extract.sh remove asset folder if it exists. --- README.md | 2 +- extract.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ef22534..6b7c5c75 100755 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ There are some useful scripts that should be kept in mind when working on this r #### `./generate_ld.sh` -This script will generate the linker file `dkr.ld`, which is used for building. You will need to call this when you add or remove files from the `/asm/` directory. +This script will generate the linker file `dkr.ld`, which is used for building. You will need to call this when you add or remove files from the `/asm/` or `/src/` directories. --- diff --git a/extract.sh b/extract.sh index b291b1e8..6434d99a 100755 --- a/extract.sh +++ b/extract.sh @@ -1,4 +1,11 @@ echo 'Extracting Assets...' + +# Remove assets directory if it exists. +ASSETS_DIR="./assets/" +if [ -d "$ASSETS_DIR" ]; then + rm -r $ASSETS_DIR +fi + if ! ./tools/dkr_extractor ./extract-ver ./baseroms .; then exit 1 fi