Primer commit
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
###place this script into root folder that contains .7z PSX archives
|
||||
###may need to chmod +x file to make executable
|
||||
|
||||
###uncomment below if required software not on system
|
||||
#sudo apt-get install -y mame-tools p7zip-full
|
||||
|
||||
#extract 7z
|
||||
for x7zFile in *.7z; do
|
||||
gameName="$(basename "$x7zFile" .7z)"
|
||||
echo "!!!!!!!!!!Extracting ${gameName}..."
|
||||
7z x "${x7zFile}" -o./"${gameName}-tmp"
|
||||
|
||||
#convet to chd
|
||||
echo "!!!!!!!!!!Converting ${gameName}..."
|
||||
chdman createcd -i "./${gameName}-tmp/${gameName}cue" -o ./"${gameName}.chd"
|
||||
|
||||
#rm temporary directory
|
||||
rm -R ./"${gameName}-tmp"
|
||||
|
||||
### uncomment below to rm the original 7z archive
|
||||
# rm ./"$x7zFile"
|
||||
|
||||
echo "!!!!!!!!!!${gameName} complete..."
|
||||
|
||||
done
|
||||
|
||||
echo "All done."
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
###place this script into root folder that contains .7z PSX archives
|
||||
###may need to chmod +x file to make executable
|
||||
|
||||
###uncomment below if required software not on system
|
||||
#sudo apt-get install -y mame-tools p7zip-full
|
||||
|
||||
sourcedir="/home/sergio/nas_roms/SNK - Neo Geo CD (2016-01-08) (Redump)"
|
||||
destdir="//home/sergio/SNK - Neo Geo CD (2016-01-08) (Redump)"
|
||||
|
||||
#extract zip
|
||||
for zipfile in "${sourcedir}"/*.zip; do
|
||||
gameName="$(basename "$zipfile" .zip)"
|
||||
echo -e "\e[1m\e[41mExtracting ${gameName}...\033[0m"
|
||||
7z x "${zipfile}" -o"${destdir}/${gameName}-tmp"
|
||||
|
||||
#convet to chd
|
||||
echo -e "\e[1m\e[41mConverting ${gameName}...\033[0m"
|
||||
find "${destdir}/${gameName}-tmp/" -type f -iname "*.cue" -exec chdman createcd -i {} -o "${destdir}/${gameName}.chd" \;
|
||||
|
||||
#rm temporary directory
|
||||
rm -rdf "${destdir}/${gameName}-tmp"
|
||||
|
||||
### uncomment below to rm the original zip archive
|
||||
#rm ./"$zipfile"
|
||||
|
||||
echo "!!!!!!!!!!${gameName} complete..."
|
||||
|
||||
done
|
||||
|
||||
echo "All done."
|
||||
Executable
+94
@@ -0,0 +1,94 @@
|
||||
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
|
||||
Executable
+157
@@ -0,0 +1,157 @@
|
||||
#!/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
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
console="atari2600 atarilynx fds gamegear gb gba gbc mastersystem megadrive msx nes ngp ngpc sega32x snes wonderswan wonderswancolor"
|
||||
for i in $console; do
|
||||
Skyscraper --videos --unattend --unpack -p $i -s screenscraper
|
||||
Skyscraper --videos --unattend -p $i -s mobygames
|
||||
Skyscraper --videos --unattend -p $i -s thegamesdb
|
||||
Skyscraper --videos --unattend --forcefilename --relative -a artwork.xml.screenshot -p $i
|
||||
done
|
||||
|
||||
consolecd="segacd psx pcengine"
|
||||
for i in $consolecd; do
|
||||
Skyscraper --videos --unattend -p $i -s screenscraper
|
||||
Skyscraper --videos --unattend -p $i -s mobygames
|
||||
Skyscraper --videos --unattend -p $i -s thegamesdb
|
||||
Skyscraper --videos --unattend --forcefilename --relative -a artwork.xml.cover -p $i
|
||||
done
|
||||
|
||||
arcade="fba neogeo mame-advmame mame-mame4all"
|
||||
for i in $arcade; do
|
||||
Skyscraper --videos --unattend -p $i -s screenscraper
|
||||
Skyscraper --videos --unattend -p $i -s arcadedb
|
||||
Skyscraper --videos --unattend --relative -a artwork.xml.screenshot -p $i
|
||||
done
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
console="atari2600 atarilynx gamegear gb gba gbc mastersystem megadrive nes ngp ngpc pcengine snes"
|
||||
for i in $console; do
|
||||
Skyscraper --videos --unattend --unpack -p $i -s screenscraper
|
||||
Skyscraper --videos --unattend -p $i -s mobygames
|
||||
Skyscraper --videos --unattend -p $i -s thegamesdb
|
||||
Skyscraper --videos --unattend --forcefilename --relative -a artwork.xml.screenshot -p $i
|
||||
done
|
||||
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
console="atari2600 atarilynx fds gamegear gb gba gbc mastersystem megadrive msx nes ngp ngpc pcengine sega32x snes wonderswan wonderswancolor"
|
||||
for i in $console; do
|
||||
Skyscraper --videos --unattend --unpack -p $i -s screenscraper
|
||||
Skyscraper --videos --unattend -p $i -s mobygames
|
||||
Skyscraper --videos --unattend -p $i -s thegamesdb
|
||||
#Skyscraper --videos --unattend --forcefilename --relative -a artwork.xml.screenshot -p $i
|
||||
done
|
||||
|
||||
consolecd="segacd psx"
|
||||
for i in $consolecd; do
|
||||
Skyscraper --videos --unattend -p $i -s screenscraper
|
||||
Skyscraper --videos --unattend -p $i -s mobygames
|
||||
Skyscraper --videos --unattend -p $i -s thegamesdb
|
||||
#Skyscraper --videos --unattend --forcefilename --relative -a artwork.xml.cover -p $i
|
||||
done
|
||||
|
||||
arcade="fba neogeo mame-advmame mame-mame4all"
|
||||
for i in $arcade; do
|
||||
Skyscraper --videos --unattend -p $i -s screenscraper
|
||||
Skyscraper --videos --unattend -p $i -s arcadedb
|
||||
#Skyscraper --videos --unattend --relative -a artwork.xml.screenshot -p $i
|
||||
done
|
||||
Reference in New Issue
Block a user