fixes
This commit is contained in:
@@ -12,7 +12,7 @@ readonly USAGE="
|
||||
USAGE:
|
||||
$(basename "$0") [SYSTEM] [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"
|
||||
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"
|
||||
|
||||
# check if there are all the parameters
|
||||
if [ "$#" -ne 3 ]; then
|
||||
@@ -27,6 +27,11 @@ if ! echo "$SYSTEMS" | grep -w "$2" >/dev/null; then
|
||||
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 SYSTEM="$1"
|
||||
readonly ROM_FOLDER="$2"
|
||||
@@ -281,4 +286,4 @@ mkdir -p "${THUMBNAILS_FOLDER}"/"${PLAYLIST_NAME}"/Named_Titles
|
||||
|
||||
cp -v "${ROM_FOLDER}"/"${SYSTEM}"/media/covers/* "${THUMBNAILS_FOLDER}"/"${PLAYLIST_NAME}"/Named_Boxarts
|
||||
cp -v "${ROM_FOLDER}"/"${SYSTEM}"/media/screenshots/* "${THUMBNAILS_FOLDER}"/"${PLAYLIST_NAME}"/Named_Snaps
|
||||
cp -v "${ROM_FOLDER}"/"${SYSTEM}"/media/title/* "${THUMBNAILS_FOLDER}"/"${PLAYLIST_NAME}"/Named_Titles
|
||||
#cp -v "${ROM_FOLDER}"/"${SYSTEM}"/media/title/* "${THUMBNAILS_FOLDER}"/"${PLAYLIST_NAME}"/Named_Titles
|
||||
|
||||
Reference in New Issue
Block a user