Description
Hi there, I'm writing a rom manager in rust inside of which I'm calling chdman to extract chds and verify them against redump.
Right now this involves extracting the chd, then splitting it, then verifying each bin checksum. This could be greatly streamlined if I could output the cue to /dev/null and the chd data to /dev/stdout.
I can trick chdman on the command line using the following:
chdman extractcd -f -i test.chd -o /dev/null -ob /dev/stdout > test.bin
But it does not work when invoking the same command from rust, and all I get is:
Error writing frame 3439 to file (/dev/null): write error
I'm guessing this is because there is a delay between the moment the process is spawned, and the moment stdout is being consumed, and I don't think there is a way to work around that from rust yet as I even tried launching the stdout consumption before spawning the process.
Would it be possible for chdman to handle those special files and don't assume the output will be read right away?