[Scummvm-cvs-logs] CVS: scummvm/sky text.cpp,1.1,1.2

Joost Peters joostp at users.sourceforge.net
Sat Apr 5 10:07:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv20670/sky

Modified Files:
	text.cpp 
Log Message:
removed debug/text dump code (oops :))

Index: text.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/text.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- text.cpp	5 Apr 2003 18:01:29 -0000	1.1
+++ text.cpp	5 Apr 2003 18:06:52 -0000	1.2
@@ -28,11 +28,8 @@
 #define NO_OF_TEXT_SECTIONS	8	// 8 sections per language
 #define	CHAR_SET_FILE	60150
 #define	SET_FONT_DATA_SIZE	12
-#define	TD_LINE_JUMP	10 
 #define MAX_SPEECH_SECTION	7 
 
-//#define	DO_TEXT_DUMP
-
 void SkyState::initialiseText(void) {
 
 	_mainCharacterSet.addr = (byte *)loadFile(CHAR_SET_FILE, NULL);
@@ -46,39 +43,6 @@
 	if (_isCDVersion) {
 		_preAfterTableArea = loadFile(60522, NULL);
 	}
-
-	#ifdef DO_TEXT_DUMP 
-		uint32 dumpConvertTable[] = {
-			553,	// 553 lines in section 0
-			484,	// 488 (484?) lines in section 1
-			1303,	// 1303 lines in section 2
-			922,	// 922 lines in section 3
-			1140,	// 1140 lines in section 4
-			531,	// 531 lines in section 5
-			150	// 150 lines in section 6
-		};
-
-		uint32 sectionCounter = 0;
-		uint32 textNumber = 0;
-		int32 lines = 0;
-		uint32 textNr;
-	
-		for (sectionCounter = 0; sectionCounter < MAX_SPEECH_SECTION; sectionCounter++) {
-			lines = dumpConvertTable[sectionCounter];
-			textNumber = 0;
-
-			do {
-				textNr = (sectionCounter << 12) + textNumber;
-				printf("Section \"%d\", Item \"%d\", Number \"%d\"\n", sectionCounter, textNumber, lines);
-				getText(textNr);
-				printf("Text: \"%s\"\n", _textBuffer);
-				textNumber += TD_LINE_JUMP;
-				lines -= TD_LINE_JUMP;	
-			} while (lines > -1);
-		}
-			
-	#endif
-
 }
 
 void SkyState::setupVersionSpecifics(uint32 version) {





More information about the Scummvm-git-logs mailing list