[Scummvm-devel] Broken Sword 1 for Mac, regression
Thierry Crozat
criezy at scummvm.org
Fri Jan 8 23:08:51 CET 2010
Le 8 janv. 10 à 22:02, Johannes Schickel a écrit :
> 2010/1/8 Thierry Crozat <criezy at scummvm.org>:
>> Looking at the code to refresh my memory, this is normal: for the
>> full version where the speech files are named speech1.clu (or clv/
>> clf/
>> cl3) and speech2.clu, calling initCowSystem() with currentCD set to
>> zero was already a no-op since it couldn't find any file to open
>> (unless you happen to have a file named speech0.clu). There are two
>> exceptions: the demo whose speech file is named cows.mad and
>> supposedly (I have not tried) playing from the CD which opens
>> speech.clu. The name of these files do not depend on the value of
>> currentCD and therefore this could indeed lead to _cowFile being
>> opened while currendCD was zero. I think these are the only two cases
>> where it could happen (unless it could happen with the PSX version as
>> well).
>
> Actually the demo I'm using uses "SPEECH.CLU" not cows.mad (at least
> it has a SPEECH.CLU file in the SPEECH/ folder and I do not have any
> cows.mad file at all). Maybe that caused issues in the first place?
> (Seeing you say the demo only uses cows.mad).
>
> // Johannes
That might be my memory playing tricks (I am not very familiar with
the demo). But the problem would be the same wether the file is named
speech.clu or cows.mad: the file name does not depend on currentCD
and would therefore be found even if currentCD is 0. This was what
caused the issue.
More information about the Scummvm-devel
mailing list