[Scummvm-cvs-logs] SF.net SVN: scummvm:[46298] tools/branches/gsoc2009-gui/extract_gob_stk.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Tue Dec 8 23:05:17 CET 2009
Revision: 46298
http://scummvm.svn.sourceforge.net/scummvm/?rev=46298&view=rev
Author: strangerke
Date: 2009-12-08 22:05:11 +0000 (Tue, 08 Dec 2009)
Log Message:
-----------
Fix gob extraction for standard file format (STK10), suppress several CR in print()
Modified Paths:
--------------
tools/branches/gsoc2009-gui/extract_gob_stk.cpp
Modified: tools/branches/gsoc2009-gui/extract_gob_stk.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_gob_stk.cpp 2009-12-08 22:04:00 UTC (rev 46297)
+++ tools/branches/gsoc2009-gui/extract_gob_stk.cpp 2009-12-08 22:05:11 UTC (rev 46298)
@@ -73,7 +73,6 @@
_outputPath.setExtension(".gob");
gobConf.open(_outputPath.getFullPath(), "w");
-
gobConf.printf("%s\n", inpath.getFullName().c_str());
stk.read(signature, 1, 6);
@@ -160,7 +159,7 @@
buffer[8] = '\0';
strcat(debugStr, buffer);
- print("%s\n",debugStr);
+ print("%s",debugStr);
filenamePos = stk.readUint32LE();
// Filenames - Header
@@ -252,13 +251,13 @@
byte *unpackedData = NULL;
while (curChunk != 0) {
- print("Extracting \"%s\"\n", curChunk->name);
+ print("Extracting \"%s\"", curChunk->name);
outpath.setFullName(curChunk->name);
File chunkFile(outpath, "wb");
if (curChunk->size > 0) {
- chunkFile.seek(curChunk->offset, SEEK_SET);
+ stk.seek(curChunk->offset, SEEK_SET);
byte *data = new byte[curChunk->size];
@@ -372,9 +371,9 @@
// - bytes 2&3 : Either the real size or 0x007D. Directly related to the size of the file.
// - bytes 4&5 : 0x0000 (files are small) ;)
if (dummy1 == 0xFFFF)
- print("Real size %d\n", READ_LE_UINT32(src));
+ print("Real size %d", READ_LE_UINT32(src));
else
- print("Unknown real size %xX %xX\n", dummy1>>8, dummy1 & 0x00FF);
+ print("Unknown real size %xX %xX", dummy1>>8, dummy1 & 0x00FF);
// counter = size = READ_LE_UINT32(src);
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