[Scummvm-cvs-logs] SF.net SVN: scummvm:[46723] tools/branches/gsoc2009-gui/engines/kyra/ extract_kyra.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Dec 29 23:40:42 CET 2009


Revision: 46723
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46723&view=rev
Author:   lordhoto
Date:     2009-12-29 22:40:41 +0000 (Tue, 29 Dec 2009)

Log Message:
-----------
Fix extract_kyra.

Modified Paths:
--------------
    tools/branches/gsoc2009-gui/engines/kyra/extract_kyra.cpp

Modified: tools/branches/gsoc2009-gui/engines/kyra/extract_kyra.cpp
===================================================================
--- tools/branches/gsoc2009-gui/engines/kyra/extract_kyra.cpp	2009-12-29 22:30:20 UTC (rev 46722)
+++ tools/branches/gsoc2009-gui/engines/kyra/extract_kyra.cpp	2009-12-29 22:40:41 UTC (rev 46723)
@@ -54,7 +54,6 @@
 	// Parse our own arguments
 	while (!_arguments.empty()) {
 		std::string arg = _arguments.front();
-		_arguments.pop_front();
 		if (arg == "-x") {
 			extractAll = true;
 			extractOne = false;
@@ -67,12 +66,13 @@
 			extractAll = false;
 
 			if (_arguments.empty())
-				error("No filename supplied to -n\nShould be used on the form: %s -n ALGAE.CPS -o out/ A_E.PAK");
+				error("No filename supplied to -n\nShould be used on the form: -n ALGAE.CPS -o out/ A_E.PAK");
 			singleFilename = _arguments.front();
 			_arguments.pop_front();
 		} else {
 			break;
 		}
+		_arguments.pop_front();
 	}
 }
 


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