[Scummvm-cvs-logs] SF.net SVN: scummvm:[46389] tools/branches/gsoc2009-gui/compress_kyra.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Wed Dec 16 16:26:20 CET 2009
Revision: 46389
http://scummvm.svn.sourceforge.net/scummvm/?rev=46389&view=rev
Author: lordhoto
Date: 2009-12-16 15:26:20 +0000 (Wed, 16 Dec 2009)
Log Message:
-----------
Fix output name for compress_kyra.
Modified Paths:
--------------
tools/branches/gsoc2009-gui/compress_kyra.cpp
Modified: tools/branches/gsoc2009-gui/compress_kyra.cpp
===================================================================
--- tools/branches/gsoc2009-gui/compress_kyra.cpp 2009-12-16 15:05:25 UTC (rev 46388)
+++ tools/branches/gsoc2009-gui/compress_kyra.cpp 2009-12-16 15:26:20 UTC (rev 46389)
@@ -48,6 +48,7 @@
void CompressKyra::execute() {
Filename inpath(_inputPaths[0].path);
Filename &outpath = _outputPath;
+ outpath.setFullName(inpath.getFullName());
if (inpath == outpath)
error("Infile and outfile cannot be the same file");
@@ -320,12 +321,12 @@
uint32 resOffset = input.readUint32LE();
char outname[16];
- snprintf(outname, 16, "%.08u.%s", resFilename, audio_extensions(_format));
+ snprintf(outname, 16, "%.08u%s", resFilename, audio_extensions(_format));
const DuplicatedFile *file = findDuplicatedFile(resOffset, red, files);
if (file) {
char linkname[16];
- snprintf(linkname, 16, "%.08u.%s", file->resFilename, audio_extensions(_format));
+ snprintf(linkname, 16, "%.08u%s", file->resFilename, audio_extensions(_format));
output.linkFiles(outname, linkname);
} else {
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