[Scummvm-cvs-logs] SF.net SVN: scummvm:[46448] tools/branches/gsoc2009-gui

joostp at users.sourceforge.net joostp at users.sourceforge.net
Sun Dec 20 23:21:20 CET 2009


Revision: 46448
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46448&view=rev
Author:   joostp
Date:     2009-12-20 22:21:19 +0000 (Sun, 20 Dec 2009)

Log Message:
-----------
add newlines

Modified Paths:
--------------
    tools/branches/gsoc2009-gui/extract_gob_stk.cpp
    tools/branches/gsoc2009-gui/extract_loom_tg16.cpp
    tools/branches/gsoc2009-gui/extract_mm_apple.cpp
    tools/branches/gsoc2009-gui/extract_mm_nes.cpp
    tools/branches/gsoc2009-gui/extract_t7g_mac.cpp
    tools/branches/gsoc2009-gui/extract_zak_c64.cpp
    tools/branches/gsoc2009-gui/tool.cpp

Modified: tools/branches/gsoc2009-gui/extract_gob_stk.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_gob_stk.cpp	2009-12-20 22:16:29 UTC (rev 46447)
+++ tools/branches/gsoc2009-gui/extract_gob_stk.cpp	2009-12-20 22:21:19 UTC (rev 46448)
@@ -88,7 +88,7 @@
 	stk.read_throwsOnError(signature, 6);
 
 	if (strncmp(signature, "STK2.1", 6) == 0) {
-		print("Signature of new STK format (STK 2.1) detected in file \"%s\"", inpath.getFullPath().c_str());
+		print("Signature of new STK format (STK 2.1) detected in file \"%s\"\n", inpath.getFullPath().c_str());
 		gobConf.print("%s\n", confSTK21);
 		readChunkListV2(stk, gobConf);
 	} else {

Modified: tools/branches/gsoc2009-gui/extract_loom_tg16.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_loom_tg16.cpp	2009-12-20 22:16:29 UTC (rev 46447)
+++ tools/branches/gsoc2009-gui/extract_loom_tg16.cpp	2009-12-20 22:21:19 UTC (rev 46448)
@@ -1225,15 +1225,15 @@
 	case 0x29EED3C5: // dumpcd
 	case 0xE70FA498: // turborip
 		ISO = ISO_USA;
-		print("ISO contents verified as Loom USA (track 2)");
+		print("ISO contents verified as Loom USA (track 2)\n");
 		break;
 	case 0xD7B5F808: // dumpcd
 	case 0xCA757D06: // turborip
 		ISO = ISO_JPN;
-		print("ISO contents verified as Loom Japan (track 2)");
+		print("ISO contents verified as Loom Japan (track 2)\n");
 		break;
 	default:
-		error("ISO contents not recognized");
+		error("ISO contents not recognized\n");
 		break;
 	}
 #ifdef	MAKE_LFLS
@@ -1247,7 +1247,7 @@
 
 		File output(_outputPath, "wb");
 
-		print("Creating %s...", fname);
+		print("Creating %s...\n", fname);
 		for (int j = 0; lfl->entries[j] != NULL; j++) {
 			p_resource entry = lfl->entries[j];
 			switch (entry->type) {
@@ -1279,7 +1279,7 @@
 
 	_outputPath.setFullName("00.LFL");
 	File output(_outputPath, "wb");
-	print("Creating 00.LFL...");
+	print("Creating 00.LFL...\n");
 
 	lfl_index.num_rooms = NUM_ROOMS;
 	lfl_index.num_costumes = NUM_COSTUMES;
@@ -1328,17 +1328,17 @@
 
 	_outputPath.setFullName("97.LFL");
 	output.open(_outputPath, "wb");
-	print("Creating 97.LFL...");
+	print("Creating 97.LFL...\n");
 	extract_resource(input, output, &res_charset);
 
 	_outputPath.setFullName("98.LFL");
 	output.open(_outputPath, "wb");
-	print("Creating 98.LFL...");
+	print("Creating 98.LFL...\n");
 	extract_resource(input, output, &res_charset);
 
 	_outputPath.setFullName("99.LFL");
 	output.open(_outputPath, "wb");
-	print("Creating 99.LFL...");
+	print("Creating 99.LFL...\n");
 	extract_resource(input, output, &res_charset);
 
 #else // !MAKE_LFLS

Modified: tools/branches/gsoc2009-gui/extract_mm_apple.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_mm_apple.cpp	2009-12-20 22:16:29 UTC (rev 46447)
+++ tools/branches/gsoc2009-gui/extract_mm_apple.cpp	2009-12-20 22:21:19 UTC (rev 46448)
@@ -87,7 +87,7 @@
 	File output(fname, "wb");
 	// All output should be xored
 	output.setXorMode(0xFF);
-	print("Creating 00.LFL...");
+	print("Creating 00.LFL...\n");
 
 	/* write signature */
 	output.writeUint16LE(signature);
@@ -142,7 +142,7 @@
 		outpath.setFullName(fname);
 		output.open(fname, "wb");
 
-		print("Creating %s...", fname);
+		print("Creating %s...\n", fname);
 		input->seek((SectorOffset[room_tracks_apple[i]] + room_sectors_apple[i]) * 256, SEEK_SET);
 
 		for (j = 0; j < ResourcesPerFile[i]; j++) {

Modified: tools/branches/gsoc2009-gui/extract_mm_nes.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_mm_nes.cpp	2009-12-20 22:16:29 UTC (rev 46447)
+++ tools/branches/gsoc2009-gui/extract_mm_nes.cpp	2009-12-20 22:21:19 UTC (rev 46448)
@@ -1084,7 +1084,7 @@
 	char fname[256];
 	sprintf(fname, fn_template, num);
 	File output(fname, "wb");
-	print("Extracting resource to %s", fname);
+	print("Extracting resource to %s\n", fname);
 	extract_resource(input, output, res, type);
 }
 #endif /* MAKE_LFLS */
@@ -1147,27 +1147,27 @@
 	switch (CRC) {
 	case 0x0D9F5BD1:
 		ROMset = ROMSET_USA;
-		print("ROM contents verified as Maniac Mansion (USA)");
+		print("ROM contents verified as Maniac Mansion (USA)\n");
 		break;
 	case 0xF59CFC3D:
 		ROMset = ROMSET_EUROPE;
-		print("ROM contents verified as Maniac Mansion (Europe)");
+		print("ROM contents verified as Maniac Mansion (Europe)\n");
 		break;
 	case 0x3F2BDA65:
 		ROMset = ROMSET_SWEDEN;
-		print("ROM contents verified as Maniac Mansion (Sweden)");
+		print("ROM contents verified as Maniac Mansion (Sweden)\n");
 		break;
 	case 0xF4B70BFE:
 		ROMset = ROMSET_FRANCE;
-		print("ROM contents verified as Maniac Mansion (France)");
+		print("ROM contents verified as Maniac Mansion (France)\n");
 		break;
 	case 0x60EA98A0:
 		ROMset = ROMSET_GERMANY;
-		print("ROM contents verified as Maniac Mansion (Germany)");
+		print("ROM contents verified as Maniac Mansion (Germany)\n");
 		break;
 	case 0xF5B2AFCA:
 		ROMset = ROMSET_SPAIN;
-		print("ROM contents verified as Maniac Mansion (Spain)");
+		print("ROM contents verified as Maniac Mansion (Spain)\n");
 		break;
 	case 0x3DA2085E:
 		error("Maniac Mansion (Japan) is not supported");
@@ -1190,7 +1190,7 @@
 #ifdef MAKE_LFLS
 		output.setXorMode(0xFF);
 #endif
-		print("Creating %s...", fname);
+		print("Creating %s...\n", fname);
 		
 		for (j = 0; lfl->entries[j].type != NULL; j++) {
 			const struct t_lflentry *entry = &lfl->entries[j];
@@ -1261,7 +1261,7 @@
 #ifdef MAKE_LFLS
 	output.setXorMode(0xFF);
 #endif
-	print("Creating 00.LFL...");
+	print("Creating 00.LFL...\n");
 
 	output.writeUint16LE(0x4643);
 	extract_resource(input, output, &res_globdata.langs[ROMset][0], res_globdata.type);

Modified: tools/branches/gsoc2009-gui/extract_t7g_mac.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_t7g_mac.cpp	2009-12-20 22:16:29 UTC (rev 46447)
+++ tools/branches/gsoc2009-gui/extract_t7g_mac.cpp	2009-12-20 22:21:19 UTC (rev 46448)
@@ -128,7 +128,7 @@
 			case MKID_BE('INST'):
 			case MKID_BE('T7GM'):
 			{
-				print("Extracting \"%s\" resources", resType);
+				print("Extracting \"%s\" resources\n", resType);
 				uint16 numRes = infile.readUint16BE();
 				uint32 offsetRefList = offsetResTypes + infile.readUint16BE();
 
@@ -136,7 +136,7 @@
 				break;
 			}
 			default:
-				print("Skipping \"%s\" resources", resType);
+				print("Skipping \"%s\" resources\n", resType);
 				break;
 		}
 	}

Modified: tools/branches/gsoc2009-gui/extract_zak_c64.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_zak_c64.cpp	2009-12-20 22:16:29 UTC (rev 46447)
+++ tools/branches/gsoc2009-gui/extract_zak_c64.cpp	2009-12-20 22:21:19 UTC (rev 46448)
@@ -84,7 +84,7 @@
 	outpath.setFullName("00.LFL");
 	File output(outpath, "wb");
 	output.setXorMode(0xFF);
-	print("Creating 00.LFL...");
+	print("Creating 00.LFL...\n");
 
 	/* write signature */
 	output.writeUint16LE(signature);
@@ -139,7 +139,7 @@
 		outpath.setFullName(fname);
 		output.open(outpath, "wb");
 
-		print("Creating %s...", fname);
+		print("Creating %s...\n", fname);
 		input->seek((SectorOffset[room_tracks_c64[i]] + room_sectors_c64[i]) * 256, SEEK_SET);
 
 		for (j = 0; j < ResourcesPerFile[i]; j++) {
@@ -154,7 +154,7 @@
 		input->rewind();
 	}
 
-	print("All done!");
+	print("All done!\n");
 }
 
 #ifdef STANDALONE_MAIN

Modified: tools/branches/gsoc2009-gui/tool.cpp
===================================================================
--- tools/branches/gsoc2009-gui/tool.cpp	2009-12-20 22:16:29 UTC (rev 46447)
+++ tools/branches/gsoc2009-gui/tool.cpp	2009-12-20 22:21:19 UTC (rev 46448)
@@ -79,7 +79,7 @@
 
 	// Make sure we have enough input files.
 	if (_arguments.size() < _inputPaths.size()) {
-		print("Too few input files!");
+		print("Too few input files!\n");
 		return -2;
 	}
 
@@ -124,7 +124,7 @@
 		run();
 	} catch(ToolException &err) {
 		const char *what = err.what();
-		print("Fatal Error : %s", what);
+		print("Fatal Error : %s\n", what);
 		return err._retcode;
 	}
 	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