[Wesnoth-commits] r10178 - /trunk/src/game.cpp (February 18, 2006 - 05:13)

Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Headers

 

Author: darthfool
Date: Sat Feb 18 05:12:12 2006
New Revision: 10178

URL: http://svn.gna.org/viewcvs/wesnoth?rev=10178&view=rev
Log:
added --load FILE command line

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=10178&r1=10177&r2=10178&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sat Feb 18 05:12:12 2006
@@ -181,6 +181,11 @@
 				++arg_;
 				force_bpp_ = lexical_cast_default<int>(argv_[arg_],-1);
 			}
+		} else if(val == "--load") {
+			if(arg_+1 != argc_) {
+				++arg_;
+				loaded_game_ = argv_[arg_];
+			}
 		} else if(val == "--nogui") {
 			no_gui_ = true;
 		} else if(val == "--windowed" || val == "-w") {
@@ -1517,6 +1522,7 @@
 			<< "  -h, --help        Prints this message and exits\n"
 			<< "  --path            Prints the name of the game data directory and exits\n"
 			<< "  -t, --test        Runs the game in a small example scenario\n"
+			<< "  --load FILE       Runs the game, loading FILE\n"
 			<< "  -w, --windowed    Runs the game in windowed mode\n"
 			<< "  -v, --version     Prints the game's version number and exits\n"
 			<< "  --log-error=\"domain1,domain2,...\", --log-warning=..., --log-info=...\n"



Related Mails




Powered by MHonArc, Updated Sat Feb 18 06:20:11 2006