Skip to content

Commit

Permalink
add newlines
Browse files Browse the repository at this point in the history
svn-id: r46448
  • Loading branch information
joostp committed Dec 20, 2009
1 parent a4f31fa commit d8745a7
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion extract_gob_stk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
16 changes: 8 additions & 8 deletions extract_loom_tg16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions extract_mm_apple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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++) {
Expand Down
18 changes: 9 additions & 9 deletions extract_mm_nes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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");
Expand All @@ -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];
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions extract_t7g_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ 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();

handleReferenceList(infile, offsetRefList, numRes, offsetResNames);
break;
}
default:
print("Skipping \"%s\" resources", resType);
print("Skipping \"%s\" resources\n", resType);
break;
}
}
Expand Down
6 changes: 3 additions & 3 deletions extract_zak_c64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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++) {
Expand All @@ -154,7 +154,7 @@ void ExtractZakC64::execute() {
input->rewind();
}

print("All done!");
print("All done!\n");
}

#ifdef STANDALONE_MAIN
Expand Down
4 changes: 2 additions & 2 deletions tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int Tool::run(const std::deque<std::string> &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;
}

Expand Down Expand Up @@ -124,7 +124,7 @@ int Tool::run(const std::deque<std::string> &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;
Expand Down

0 comments on commit d8745a7

Please sign in to comment.