ZAK256: Missing opcode 02/82
|Reported by:||SF/hibernatus||Owned by:||fingolfin|
This opcode is used for audio CD commands.
Here is what to do:
r is the result b is the parameter
b == 0: if an audio track is playing: r = 0 else: r = 1
b == FF: I don't know what it's used for, but anyway it's never used in the scripts.
b == FE: if an audio track is playing: r = the SO block number else: r = 0
b == FD: pause the audio track r = anything
b == FC: unpause (start where it was when you paused) r = anything
b == a CD track number: r = track length in seconds
To check scummvm returns the right track length you can look at the global script #9 (0x888A in 49.LFL).
FD and FC are used to let the game load several resources without hanging when a CD track is playing. I guess it's already not a problem in scummvm :)
Ticket imported from: #762589. Ticket imported from: bugs/927.