[Scummvm-cvs-logs] CVS: scummvm insane.cpp,1.1,1.2 scummvm.cpp,1.63,1.64

Vincent Hamm yazoo at users.sourceforge.net
Wed Mar 6 13:26:31 CET 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv25666

Modified Files:
	insane.cpp scummvm.cpp 
Log Message:
Made a few hacks in the smush player to make DIG intro play (but buggy)

Index: insane.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/insane.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** insane.cpp	6 Mar 2002 19:58:06 -0000	1.1
--- insane.cpp	6 Mar 2002 20:32:34 -0000	1.2
***************
*** 157,164 ****
  	
  	if (pitch != 320)
! 		error("invalid pitch");
  
  	do {
! 		i = bw;
  		do {
  			code = *src++;
--- 157,167 ----
  	
  	if (pitch != 320)
! 	{
! 		warning("invalid pitch");
! 		return;
! 	}
  
  	do {
! 	i = bw;
  		do {
  			code = *src++;
***************
*** 325,329 ****
  		size = *(uint32*)(cd->src + 4);
  		curbuf = pcd->deltaBufs[pcd->curtable];
! 		codec37_bompdepack(curbuf, cd->src+16, size);
  		memset(pcd->deltaBuf, 0, curbuf - pcd->deltaBuf);
  		memset(curbuf + size, 0, pcd->deltaBuf + pcd->deltaSize - curbuf - size);
--- 328,335 ----
  		size = *(uint32*)(cd->src + 4);
  		curbuf = pcd->deltaBufs[pcd->curtable];
! 		if(size==64000)
! 			codec37_bompdepack(curbuf, cd->src+16, size);
! 		else
! 			return;
  		memset(pcd->deltaBuf, 0, curbuf - pcd->deltaBuf);
  		memset(curbuf + size, 0, pcd->deltaBuf + pcd->deltaSize - curbuf - size);
***************
*** 546,549 ****
--- 552,556 ----
  		
  		parseTag();
+ 		frameIndex++;
  
  		if (_paletteChanged) {

Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scummvm.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** scummvm.cpp	6 Mar 2002 19:58:06 -0000	1.63
--- scummvm.cpp	6 Mar 2002 20:32:34 -0000	1.64
***************
*** 225,228 ****
--- 225,230 ----
  	if(_gameId == GID_FT)
  		sprintf((char*)_videoPath,"VIDEO/");
+ 	if(_gameId == GID_DIG)
+ 		sprintf((char*)_videoPath,"video/");
  
  	if(_features & GF_AFTER_V7)





More information about the Scummvm-git-logs mailing list