You've already forked Diddy-Kong-Racing
mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-03-10 11:36:09 -07:00
31 lines
602 B
Bash
Executable File
31 lines
602 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $# == 0 || (($1 != "us_1.0") && ($1 != "us_1.1") && ($1 != "eu_1.0") && ($1 != "eu_1.1") && ($1 != "jp"))]]; then
|
|
echo 'No valid version specified, defaulting to us_1.0...'
|
|
VER="us_1.0"
|
|
else
|
|
VER=$1
|
|
fi
|
|
|
|
echo 'Extracting Assets...'
|
|
|
|
# Remove assets directory if it exists.
|
|
ASSETS_DIR="./assets/vanilla/$VER"
|
|
if [ -d "$ASSETS_DIR" ]; then
|
|
rm -r $ASSETS_DIR
|
|
fi
|
|
|
|
# Remove ucode directory if it exists.
|
|
UCODE_DIR="./ucode/$VER"
|
|
if [ -d "$UCODE_DIR" ]; then
|
|
rm -r $UCODE_DIR
|
|
fi
|
|
|
|
if ! ./tools/dkr_assets_tool -dkrv $VER extract ; then
|
|
exit 1
|
|
fi
|
|
|
|
echo 'Done.'
|
|
|
|
exit 0
|