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

sev at users.sourceforge.net sev at users.sourceforge.net
Sun Dec 20 00:30:53 CET 2009


Revision: 46422
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46422&view=rev
Author:   sev
Date:     2009-12-19 23:30:52 +0000 (Sat, 19 Dec 2009)

Log Message:
-----------
Fix SAGA compression tool. Now at least compresses. Not yet tested.

Modified Paths:
--------------
    tools/branches/gsoc2009-gui/compress_saga.cpp

Modified: tools/branches/gsoc2009-gui/compress_saga.cpp
===================================================================
--- tools/branches/gsoc2009-gui/compress_saga.cpp	2009-12-19 16:19:53 UTC (rev 46421)
+++ tools/branches/gsoc2009-gui/compress_saga.cpp	2009-12-19 23:30:52 UTC (rev 46422)
@@ -122,7 +122,7 @@
 	input.format = "*.*";
 	_inputPaths.push_back(input);
 
-	_shorthelp = "Used to compress SAGA engine games such as Inherit the Earth.";
+	_shorthelp = "Used to compress SAGA engine games such as Inherit the Earth and I Have no Mouth.";
 	_helptext = "\nUsage: " + getName() +" [mode] [mode params] [-o outputfile = infile.cmp] <inputfile>\n";
 }
 
@@ -427,6 +427,11 @@
 	Filename inpath(_inputPaths[0].path);
 	Filename &outpath = _outputPath;
 
+	if (outpath.directory()) {
+		outpath.setFullName(inpath.getName());
+		outpath.setExtension(".cmp");
+	}
+
 	// ITE
 	inpath.setExtension(".rsc");
 	if (detectFile(&inpath)) {


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