[Scummvm-cvs-logs] CVS: scummvm/scumm/imuse_digi dimuse_sndmgr.cpp,1.26.2.4,1.26.2.5

Travis Howell kirben at users.sourceforge.net
Sun Jul 18 06:50:00 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm/imuse_digi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26633/scumm/imuse_digi

Modified Files:
      Tag: branch-0-6-0
	dimuse_sndmgr.cpp 
Log Message:

Back port VAR fixes.


Index: dimuse_sndmgr.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi/dimuse_sndmgr.cpp,v
retrieving revision 1.26.2.4
retrieving revision 1.26.2.5
diff -u -d -r1.26.2.4 -r1.26.2.5
--- dimuse_sndmgr.cpp	26 Jun 2004 09:18:29 -0000	1.26.2.4
+++ dimuse_sndmgr.cpp	18 Jul 2004 13:49:32 -0000	1.26.2.5
@@ -249,6 +249,11 @@
 	else
 		error("ImuseDigiSndMgr::openMusicBundle() Don't know which bundle file to load");
 
+	if (result)
+		_vm->VAR(_vm->VAR_MUSIC_BUNDLE_LOADED) = 1;
+	else
+		_vm->VAR(_vm->VAR_MUSIC_BUNDLE_LOADED) = 0;
+
 	return result;
 }
 
@@ -283,6 +288,11 @@
 	else
 		error("ImuseDigiSndMgr::openVoiceBundle() Don't know which bundle file to load");
 
+	if (result)
+		_vm->VAR(_vm->VAR_VOICE_BUNDLE_LOADED) = 1;
+	else
+		_vm->VAR(_vm->VAR_VOICE_BUNDLE_LOADED) = 0;
+
 	return result;
 }
 





More information about the Scummvm-git-logs mailing list