[Scummvm-cvs-logs] SF.net SVN: scummvm:[41703] scummvm/trunk/engines/cruise/function.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat Jun 20 10:15:39 CEST 2009


Revision: 41703
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41703&view=rev
Author:   dreammaster
Date:     2009-06-20 08:15:39 +0000 (Sat, 20 Jun 2009)

Log Message:
-----------
Implemented the library function Op_SongExist

Modified Paths:
--------------
    scummvm/trunk/engines/cruise/function.cpp

Modified: scummvm/trunk/engines/cruise/function.cpp
===================================================================
--- scummvm/trunk/engines/cruise/function.cpp	2009-06-20 08:15:01 UTC (rev 41702)
+++ scummvm/trunk/engines/cruise/function.cpp	2009-06-20 08:15:39 UTC (rev 41703)
@@ -1647,10 +1647,17 @@
 }
 
 int16 Op_SongExist(void) {
-	char* songName = (char*)popPtr();
+	const char *songName = (char*)popPtr();
 
-	warning("Unimplemented \"Op_SongExist\": %s", songName);
+	if (songName) {
+		char name[33];
+		strcpy(name, songName);
+		strToUpper(name);
 
+		if (!strcmp(_vm->sound().musicName(), name))
+			return 1;
+	}
+
 	return 0;
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list