Hi, what does unscramble do? does it do the same as Truong's descramble_cdda tool?
Also, I was wondering if you could help us by writing a small tool/script to process scrambled gdrom dumps?.. Dremora is always busy (he's the only other coder that I know of), so maybe you can help us (such a tool could simplify the gdrom dumping process drastically) .
The input would be a scrambled 45000-549150 dump file. I guess the tool/script would have to begin by asking for the combined offset value (or maybe the tool can just correct it automatically.. after all, the write offset value is already obtained when dumping track2 so the offset isn't really used elsewhere). By entering this value, the tool can correct the offset (because all the data is in audio mode, the offset is only at the beginning of the file) and begin descrambling the first data track. When that process is ready and there is still data left, it will use the TOC (or a .sub file if you want it really fancy) from the data track to cut the audio tracks to the proper sizes. Then finally the last data track is left and is also unscrambled.
There are 2 problems that I can think of so far: I don't know if the first scrambled sectors always contain all the data (maybe if the combined offset is negative some of the data is moved to sector 44999 or earlier). Also, I don't know how the TOC should be read (gdlister by yursoft does this, but there's no source available of it afaik).