This commit is contained in:
2021-01-17 13:16:11 +01:00
parent 149a79c440
commit fbe1a96cb0
4 changed files with 43 additions and 96 deletions
Vendored
BIN
View File
Binary file not shown.
+7 -2
View File
@@ -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
+36
View File
@@ -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
-94
View File
@@ -1,94 +0,0 @@
consolecd="atari7800 fba gb intellivision msx ngp pcenginecd segacd wonderswan amstradcpc atarilynx gamegear gba mastersystem neogeo ngpc psx snes wonderswancolor atari2600 coleco gbc megadrive nes pcengine sega32x zxspectrum"
for i in $consolecd; do
cd /home/sergio/roms/$i/media/screenshots
mv *.png ..
cd ..
rm -d covers
rm -d screenshots
rm -d wheels
rm -d marquees
done
#Available artworks
# artwork.xml.screenshot
# artwork.xml.cover
#Available platforms:
# 3do
# 3ds
# amiga
# amstradcpc
# apple2
# arcade
# arcadia
# astrocde
# atari800
# atari2600
# atari5200
# atari7800
# atarijaguar
# atarilynx
# atarist
# c16
# c64
# c128
# coco
# coleco
# daphne
# dragon32
# dreamcast
# fba
# fds
# gameandwatch
# gamegear
# gb
# gba
# gbc
# gc
# genesis
# intellivision
# mame-advmame
# mame-libretro
# mame-mame4all
# mastersystem
# megacd
# megadrive
# msx
# n64
# nds
# neogeo
# nes
# ngp
# ngpc
# oric
# pc
# pc88
# pc98
# pcfx
# pcengine
# pokemini
# ports
# ps2
# psp
# psx
# saturn
# scummvm
# sega32x
# segacd
# sg-1000
# snes
# steam
# ti99
# trs-80
# vectrex
# vic20
# videopac
# virtualboy
# wii
# wonderswan
# wonderswancolor
# x68000
# x1
# zmachine
# zx81
# zxspectrum