#!/bin/bash ruta="/home/sergio/roms" scrap=true build=true console_art=artwork.xml.screenshot consolecd_art=artwork.xml.cover arcade_art=artwork.xml.wheel console_scrapers="screenscraper mobygames thegamesdb" arcade_scrapers="screenscraper arcadedb" if [ "$1" = scrap ]; then build=false echo -e "\e[1m\e[41m## SCRAP ONLY \033[0m" sleep 1 fi if [ "$1" = build ]; then scrap=false echo -e "\e[1m\e[41m## BUILD ONLY \033[0m" sleep 1 fi ## CONSOLE console="atari2600 atarilynx fds gamegear gb gba gbc mastersystem megadrive msx nes ngp ngpc pcengine sega32x snes wonderswan wonderswancolor" # atari2600 atarilynx fds gamegear gb gba gbc mastersystem megadrive msx nes ngp ngpc pcengine sega32x snes wonderswan wonderswancolor for system in $console; do if [ "$scrap" = true ]; then for scraper in $console_scrapers; do Skyscraper --flags videos,unattend,noresize,unpack -p "${system}" -s "${scraper}" done fi if [ "$build" = true ]; then Skyscraper --flags videos,unattend,forcefilename,relative,skipexistingvideos -a $console_art -p "$system" #Skyscraper --flags videos,unattend,relative,skipexistingvideos -a $console_art -p $i fi done ## CONSOLE CD consolecd="pcengine psx segacd" # pcengine segacd psx saturn mv -v ${ruta}/pcengine ${ruta}/pcengine.cart mv -v ${ruta}/pcenginecd ${ruta}/pcengine for system in $consolecd; do if [ "$scrap" = true ]; then for scraper in $console_scrapers; do Skyscraper --flags videos,unattend,noresize -p "$system" -s "$scraper" done fi if [ "$build" = true ]; then Skyscraper --flags videos,unattend,forcefilename,relative,skipexistingvideos,nobrackets -a $consolecd_art -p "$system" fi done mv -v ${ruta}/pcengine ${ruta}/pcenginecd mv -v ${ruta}/pcengine.cart ${ruta}/pcengine ## ARCADE arcade="fba neogeo mame-advmame mame-mame4all" # fba neogeo mame-advmame mame-mame4all for system in $arcade; do if [ "$scrap" = true ]; then for scrapper in $arcade_scrapers; do Skyscraper --flags videos,unattend,noresize -p "$system" -s "$scrapper" done fi if [ "$build" = true ]; then Skyscraper --flags videos,unattend,relative,skipexistingvideos,nobrackets -a $arcade_art -p "$system" fi done ## Available artworks # artwork.xml.screenshot # artwork.xml.cover # artwork.xml.wheel # artwork.xml.example1 ## 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