[Scummvm-cvs-logs] CVS: scummvm/sword2 resman.cpp,1.121,1.122
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Sun Jan 1 05:47:01 CET 2006
Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21372
Modified Files:
resman.cpp
Log Message:
Hopefully fixed the missing speech bug reported on the forum, once and for
all.
Index: resman.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/resman.cpp,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- resman.cpp 30 Dec 2005 19:27:45 -0000 1.121
+++ resman.cpp 1 Jan 2006 13:46:42 -0000 1.122
@@ -145,10 +145,24 @@
for (i = 0; i < _totalClusters; i++) {
file.read(cdInf[i].clusterName, sizeof(cdInf[i].clusterName));
+
cdInf[i].cd = file.readByte();
if (file.ioFailed())
error("Cannot read cd.inf");
+
+ // It has been reported that there are two different versions
+ // of the cd.inf file: One where all clusters on CD also have
+ // the LOCAL_CACHE bit set. This bit is no longer used. To
+ // avoid future problems, let's normalize the flag once and for
+ // all here.
+
+ if (cdInf[i].cd & LOCAL_PERM)
+ cdInf[i].cd = LOCAL_PERM;
+ else if (cdInf[i].cd & CD2)
+ cdInf[i].cd = CD2;
+ else
+ cdInf[i].cd = CD1;
}
file.close();
More information about the Scummvm-git-logs
mailing list