Author: shadowmaster
Date: Sat May 24 03:03:16 2008
New Revision: 26812

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26812&view=rev
Log:
* New command line parameter: --config-path (informative output)

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=26812&r1=26811&r2=26812&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sat May 24 03:03:16 2008
@@ -2210,7 +2210,8 @@
                        << "  --nosound                    runs the game 
without sounds and music.\n"
                        << "  --max-fps                    the maximum fps the 
game tries to run at the value\n"
                        << "                               should be between 
the 1 and 1000, the default is 50.\n"
-                       << "  --path                       prints the name of 
the game data directory and exits.\n"
+                       << "  --config-path                prints the path to 
the game config directory and exits.\n"
+                       << "  --path                       prints the path to 
the game data directory and exits.\n"
 #ifdef HAVE_PYTHON
                        << "  --python-api                 prints the runtime 
documentation for the python API.\n"
 #endif
@@ -2244,6 +2245,9 @@
                        std::cout << _("Battle for Wesnoth") << " " << 
game_config::version
                                  << "\n";
                        return 0;
+               } else if (val == "--config-path") {
+                       std::cout << get_user_data_dir() << '\n';
+                       return 0;
                } else if(val == "--path") {
                        std::cout <<  game_config::path
                                  << "\n";


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to