Onion icon indicating copy to clipboard operation
Onion copied to clipboard

Improve cue_gen script now works for multi disks + other improvements and comments

Open nenjack opened this issue 10 months ago • 2 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

nenjack avatar Mar 08 '25 01:03 nenjack

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

nenjack avatar Mar 08 '25 01:03 nenjack

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

nenjack avatar Mar 08 '25 23:03 nenjack