Ostatnio aktywny 1731735104

https://blog.vinfall.com/posts/2024/04/rom/#retool

Rewizja ac030987b47a88a72dc26c2c1d4102b1c7a6680b

fixDat.sh Surowy
1#!/bin/bash
2# Prerequisites: jc, jq & rsync
3
4cd path/to/fixDat_blahblah.dat || exit
5mv fixDat_*.dat fixDat.dat
6# RomVault has a cutoff description bug in fixDATs
7#jc --xml < fixDat.dat | jq '.datafile.game[] | .description | . + ".zip"' | sed 's/"//g' > fixDat.txt
8# So use @name instead, but this could be wrong if you use local names in Retool
9jc --xml < fixDat.dat | jq '.datafile.game[] | .["@name"] | . + ".zip"' | sed 's/"//g' > fixDat.txt
10cp fixDat.txt path/to/RetroArch/fixDat.txt
11ROMSET=$(jc --xml < fixDat.dat | jq '.datafile.header.description | sub("FixDat_"; "")' | sed 's/"//g')
12
13cd path/to/RetroArch || exit
14rsync -avP --ignore-existing --append --update --max-size="200m" --include-from="fixDat.txt" --exclude="*" "rsync://rsync.example.com/files/No-Intro/${ROMSET}/" "roms/No-Intro/${ROMSET}/"
15rm fixDat.txt