[Scummvm-cvs-logs] SF.net SVN: scummvm: [28542] scummvm/trunk/tools/create_lure

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Aug 12 13:01:11 CEST 2007


Revision: 28542
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28542&view=rev
Author:   dreammaster
Date:     2007-08-12 04:01:10 -0700 (Sun, 12 Aug 2007)

Log Message:
-----------
Added description data for game sounds

Modified Paths:
--------------
    scummvm/trunk/tools/create_lure/create_lure_dat.cpp
    scummvm/trunk/tools/create_lure/create_lure_dat.h

Modified: scummvm/trunk/tools/create_lure/create_lure_dat.cpp
===================================================================
--- scummvm/trunk/tools/create_lure/create_lure_dat.cpp	2007-08-12 09:10:10 UTC (rev 28541)
+++ scummvm/trunk/tools/create_lure/create_lure_dat.cpp	2007-08-12 11:01:10 UTC (rev 28542)
@@ -478,6 +478,7 @@
 
 void read_anim_data(byte *&data, uint16 &totalSize) {
 	// Add special pixel records
+	add_anim_record(0x184B);	    // Restart/Restore buttons
 	add_anim_record(0x55C0);		// Player midswing animation
 	add_anim_record(0x55C9);		// Player mid-level defend
 	add_anim_record(0x55D2);		// Player high-level strike
@@ -1006,6 +1007,14 @@
 	}
 }
 
+void save_sound_desc_data(byte *&data, uint16 &totalSize) {
+	lure_exe.seek(DATA_SEGMENT + SOUND_1_OFFSET);
+	
+	totalSize = SOUND_1_SIZE;
+	data = (byte *) malloc(totalSize);
+	lure_exe.read(data, totalSize);
+}
+
 void getEntry(uint8 entryIndex, uint16 &resourceId, byte *&data, uint16 &size)
 {
 	resourceId = 0x3f01 + entryIndex;
@@ -1127,6 +1136,11 @@
 		save_text_strings(data, size);
 		break;
 
+	case 23:
+		// Save the sound header desc data
+		save_sound_desc_data(data, size);
+		break;
+		
 	default:
 		data = NULL;
 		size = 0;

Modified: scummvm/trunk/tools/create_lure/create_lure_dat.h
===================================================================
--- scummvm/trunk/tools/create_lure/create_lure_dat.h	2007-08-12 09:10:10 UTC (rev 28541)
+++ scummvm/trunk/tools/create_lure/create_lure_dat.h	2007-08-12 11:01:10 UTC (rev 28542)
@@ -30,7 +30,7 @@
 #include "common/endian.h"
 
 #define VERSION_MAJOR 1
-#define VERSION_MINOR 20
+#define VERSION_MINOR 21
 #define ENGLISH_LURE 
 
 #define DATA_SEGMENT 0xac50
@@ -88,6 +88,9 @@
 
 #define EXIT_HOTSPOTS_OFFSET 0x2E57
 
+#define SOUND_1_OFFSET 0x5671
+#define SOUND_1_SIZE 265
+
 #pragma pack(1)
 
 // Rect currently copied from common/rect.h - if I try directly including it,


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