fixes
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
function help_message() {
|
||||
echo "$USAGE"
|
||||
echo
|
||||
echo "Where [SYSTEMS] are:"
|
||||
for WORD in $SYSTEMS; do
|
||||
echo -e "\t$WORD"
|
||||
done
|
||||
}
|
||||
|
||||
readonly USAGE="
|
||||
USAGE:
|
||||
$(basename "$0") [ROM_FOLDER] [THUMBNAILS_FOLDER]"
|
||||
|
||||
readonly SYSTEMS="atari2600 atari7800 atarilynx coleco dreamcast fds gamegear gb gba gbc mastersystem megadrive msx n64 nds nes ngp ngpc pcengine psp psx saturn sega32x segacd snes virtualboy wonderswan wonderswancolor"
|
||||
|
||||
# check if there are all the parameters
|
||||
if [ "$#" -ne 2 ]; then
|
||||
help_message
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! test -d "${ROM_FOLDER}"/"${SYSTEM}"; then
|
||||
echo "${ROM_FOLDER}"/"${SYSTEM}" does not exists
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#readonly SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
readonly ROM_FOLDER="$1"
|
||||
readonly THUMBNAILS_FOLDER="$2"
|
||||
readonly SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
readonly SYSTEMS="atari2600 atari7800 atarilynx coleco dreamcast fds gamegear gb gba gbc mastersystem megadrive msx n64 nds nes ngp ngpc pcengine psp psx saturn sega32x segacd sg-1000 snes virtualboy wonderswan wonderswancolor"
|
||||
|
||||
for SYSTEM in $SYSTEMS; do
|
||||
"${SCRIPT_DIR}"/create_retroarch_thumbnails.sh "${SYSTEM}" "${ROM_FOLDER}" "${THUMBNAILS_FOLDER}"
|
||||
done
|
||||
Reference in New Issue
Block a user