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