From d8745a7047c889e54227ac8b6933b61092f44b6d Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Sun, 20 Dec 2009 22:21:19 +0000 Subject: [PATCH] add newlines svn-id: r46448 --- extract_gob_stk.cpp | 2 +- extract_loom_tg16.cpp | 16 ++++++++-------- extract_mm_apple.cpp | 4 ++-- extract_mm_nes.cpp | 18 +++++++++--------- extract_t7g_mac.cpp | 4 ++-- extract_zak_c64.cpp | 6 +++--- tool.cpp | 4 ++-- 7 files changed, 27 insertions(+), 27 deletions(-) diff --git a/extract_gob_stk.cpp b/extract_gob_stk.cpp index c54d0859..b82a3406 100644 --- a/extract_gob_stk.cpp +++ b/extract_gob_stk.cpp @@ -88,7 +88,7 @@ void ExtractGobStk::execute() { 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 { diff --git a/extract_loom_tg16.cpp b/extract_loom_tg16.cpp index b3f72599..e7ecedcd 100644 --- a/extract_loom_tg16.cpp +++ b/extract_loom_tg16.cpp @@ -1225,15 +1225,15 @@ void ExtractLoomTG16::execute() { 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 @@ void ExtractLoomTG16::execute() { 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 @@ void ExtractLoomTG16::execute() { _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 @@ void ExtractLoomTG16::execute() { _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 diff --git a/extract_mm_apple.cpp b/extract_mm_apple.cpp index 814e44a9..4200c41d 100644 --- a/extract_mm_apple.cpp +++ b/extract_mm_apple.cpp @@ -87,7 +87,7 @@ void ExtractMMApple::execute() { 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 @@ void ExtractMMApple::execute() { 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++) { diff --git a/extract_mm_nes.cpp b/extract_mm_nes.cpp index 0b8a39a5..0d9bdb94 100644 --- a/extract_mm_nes.cpp +++ b/extract_mm_nes.cpp @@ -1084,7 +1084,7 @@ void ExtractMMNES::dump_resource (File &input, const char *fn_template, int num, 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 @@ void ExtractMMNes::execute() { 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 @@ void ExtractMMNes::execute() { #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 @@ void ExtractMMNes::execute() { #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); diff --git a/extract_t7g_mac.cpp b/extract_t7g_mac.cpp index 6a97d3d4..d2893ad3 100644 --- a/extract_t7g_mac.cpp +++ b/extract_t7g_mac.cpp @@ -128,7 +128,7 @@ void ExtractT7GMac::execute() { 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 @@ void ExtractT7GMac::execute() { break; } default: - print("Skipping \"%s\" resources", resType); + print("Skipping \"%s\" resources\n", resType); break; } } diff --git a/extract_zak_c64.cpp b/extract_zak_c64.cpp index 20ccff2b..f92173af 100644 --- a/extract_zak_c64.cpp +++ b/extract_zak_c64.cpp @@ -84,7 +84,7 @@ void ExtractZakC64::execute() { 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 @@ void ExtractZakC64::execute() { 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 @@ void ExtractZakC64::execute() { input->rewind(); } - print("All done!"); + print("All done!\n"); } #ifdef STANDALONE_MAIN diff --git a/tool.cpp b/tool.cpp index 2d0cf1b3..af565bbb 100644 --- a/tool.cpp +++ b/tool.cpp @@ -79,7 +79,7 @@ int Tool::run(const std::deque &args) { // 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 @@ int Tool::run(const std::deque &args) { 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;