Onion
Onion copied to clipboard
Improve cue_gen script now works for multi disks + other improvements and comments
- fix: always generate for first track even if no Track 01/Disc 01/Disk 01 present in name of file
- better name of game - stripping text in ()
- fixed working for me now correctly (for dozens of PSX games)
- works for multi disks
tested by
# mount samba onion miyoo
sudo mkdir /mnt/SDCARD && sudo mount -t cifs //192.168.0.13/__SDCARD /mnt/SDCARD -o username=onion,password=onion,uid=1000,gid=1000
# run script
./static/build/.tmp_update/script/cue_gen.sh
some explanation:
for example input file list is alphanumericaly sorted so
we write the cue after game_name changes
and that is when all the disks are done and appended to cue variable
first track is game track
other tracks are as audio
i reverse engineered how cue work and used chatgpt and tested until worked flawlessly