pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3074 - trunk/pingus/src


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3074 - trunk/pingus/src
Date: Tue, 4 Sep 2007 01:01:37 +0200

Author: grumbel
Date: 2007-09-04 01:01:36 +0200 (Tue, 04 Sep 2007)
New Revision: 3074

Modified:
   trunk/pingus/src/SConscript
   trunk/pingus/src/pingus_main.cpp
   trunk/pingus/src/pingus_menu.cpp
Log:
- cleaned up a few command line options

Modified: trunk/pingus/src/SConscript
===================================================================
--- trunk/pingus/src/SConscript 2007-09-03 22:05:38 UTC (rev 3073)
+++ trunk/pingus/src/SConscript 2007-09-03 23:01:36 UTC (rev 3074)
@@ -20,11 +20,13 @@
 
 import os
 
-env = Environment(# ENV = {'PKG_CONFIG_PATH' : os.getenv('PKG_CONFIG_PATH')},
-                  CCFLAGS = ['-O2', '-Wall', '-Werror', '-g'],
-                  CPPDEFINES = ['ENABLE_BINRELOC', 'HAVE_CWIID'],
-                  CPPPATH = ['..', '.'],
-                  LIBS = ['cwiid', 'Xi']) # FIXME: Make this configurable
+env = Environment(
+    # ENV = {'PKG_CONFIG_PATH' : os.getenv('PKG_CONFIG_PATH')},
+    CXX = "g++-4.2",
+    CCFLAGS = ['-O2', '-Wall', '-Werror', '-g'],
+    CPPDEFINES = ['ENABLE_BINRELOC', 'HAVE_CWIID'],
+    CPPPATH = ['..', '.'],
+    LIBS = ['cwiid', 'Xi']) # FIXME: Make this configurable
 
 env.ParseConfig('sdl-config  --cflags --libs')
 env['LIBS'] += ['SDL_image', 'SDL_mixer', 'png']
@@ -35,7 +37,7 @@
 # # 'pingus_level_test.cpp', 
 # # 'sound/slot_manager.cpp', 
 # # 'xml_eval.cpp',
-    
+
 'action_holder.cpp', 
 'actions/angel.cpp', 
 'actions/basher.cpp', 

Modified: trunk/pingus/src/pingus_main.cpp
===================================================================
--- trunk/pingus/src/pingus_main.cpp    2007-09-03 22:05:38 UTC (rev 3073)
+++ trunk/pingus/src/pingus_main.cpp    2007-09-03 23:01:36 UTC (rev 3074)
@@ -135,8 +135,7 @@
 PingusMain::PingusMain() :
   blitter_test(false),
   show_credits(false),
-  editor(false),
-  refresh_rate(60)
+  editor(false)
 {
 }
 
@@ -199,49 +198,56 @@
   CommandLine argp;
   argp.add_usage("pingus [OPTIONS]... [FILES]...");
   argp.add_doc("Pingus is a puzzle game where you need to guide a bunch of 
little penguins around the world.");
-    
-  argp.add_group(_("Options:"));
-  argp.add_option('g', "geometry", "{width}x{height}",  
-                  _("Set the resolution for pingus (default: 800x600)"));
+
   argp.add_option('h', "help", "", 
                   _("Displays this help"));
-  argp.add_option('n', "disable-intro", "", 
-                  _("Disable intro"));
-
+  argp.add_option('v', "verbose", "", 
+                  _("Print some more messages to stdout, can be set multiple 
times to increase verbosity"));
+  argp.add_option('V', "version", "", 
+                  _("Print version number and exit"));
 #if 0
   argp.add_option('G', "use-opengl", "",
                   _("Use OpenGL"));
   argp.add_option('S', "use-sdl", "",
                   _("Use SDL"));
 #endif 
+    
+  argp.add_group(_("Display:"));
   argp.add_option('w', "window", "",
                   _("Start in Window Mode"));
   argp.add_option('f', "fullscreen", "",
                   _("Start in Fullscreen"));
-  argp.add_option('R', "refresh-rate", "",
-                  _("Set the refresh rate in fullscreen (default: 60)"));      
            
-  argp.add_option('d', "datadir", _("PATH"),
-                  _("Set the path to load the data files to 'path'"));
-  argp.add_option('l', "level",  _("FILE"), 
-                  _("Load a custom level from FILE"));
-  argp.add_option(358, "worldmap", _("FILE"),
-                  _("Load a custom worldmap from FILE"));
-  argp.add_option('e', "editor", "",
-                  _("Loads the level editor"));
-  argp.add_option(363, "font", "FILE",
-                  _("Test a font"));
+  argp.add_option(346, "enable-swcursor", "",
+                  _("Enable software cursor"));
+  argp.add_option('g', "geometry", "{width}x{height}",  
+                  _("Set the resolution for pingus (default: 800x600)"));
+
+  argp.add_group(_("Sound:"));
+  argp.add_option('s', "disable-sound", "", 
+                  _("Disable sound"));
+  argp.add_option('m', "disable-music", "", 
+                  _("Disable music"));
+
+  argp.add_group("Language Options:");
   argp.add_option(364, "language", "LANG",
                   _("Select language to use with Pingus"));
   argp.add_option(365, "list-languages", "",
                   _("List all available languages"));
-  argp.add_option('v', "verbose", "", 
-                  _("Print some more messages to stdout, can be set multiple 
times to increase verbosity"));
-  argp.add_option('V', "version", "", 
-                  _("Print version number and exit"));
+
+  argp.add_group("Modes:");
+  argp.add_option('e', "editor", "",
+                  _("Loads the level editor"));
+  argp.add_option(363, "font", "FILE",
+                  _("Test a font"));
+  argp.add_option(359, "credits", "",
+                  _("Shows the credits"));
+
+  argp.add_group(_("Misc Options:"));
+  argp.add_option('d', "datadir", _("PATH"),
+                  _("Set the path to load the data files to 'path'"));
+
   argp.add_option(337, "disable-auto-scrolling", "",
                   _("Disable automatic scrolling"));
-  argp.add_option(346, "enable-swcursor", "",
-                  _("Enable software cursor"));
   argp.add_option(342, "no-cfg-file", "",
                   _("Don't read ~/.pingus/config"));
   argp.add_option(347, "config-file", _("FILE"),
@@ -253,7 +259,9 @@
   argp.add_group(_("Debugging and experimental stuff:"));
   argp.add_option(334, "maintainer-mode",  "",  
                   _("Enables some features, only interesting to programmers"));
-  argp.add_option(352, "debug",  "OPTION", 
+  argp.add_option(358, "worldmap", _("FILE"),
+                  _("Load a custom worldmap from FILE"));
+  argp.add_option('D', "debug",  "OPTION", 
                   _("Enable the output of debugging info, possible"
                     "OPTIONs are tiles, gametime, actions, sound, resources, 
gui,"
                     "input, pathmgr"));
@@ -273,8 +281,6 @@
                   _("Disable some cpu intensive features"));
   argp.add_option(353, "min-cpu-usage", "",
                   _("Reduces the CPU usage by issuing sleep()"));
-  argp.add_option(359, "credits", "",
-                  _("Shows the credits"));
 
   argp.add_group(_("Demo playing and recording:"));
   argp.add_option('p', "play-demo", _("FILE"), 
@@ -282,12 +288,6 @@
   argp.add_option('r', "disable-demo-recording", "",
                   _("Record demos for each played level"));
 
-  argp.add_group(_("Sound:"));
-  argp.add_option('s', "disable-sound", "", 
-                  _("Disable sound"));
-  argp.add_option('m', "disable-music", "", 
-                  _("Disable music"));
-
   argp.parse_args(argc, argv);
   argp.set_help_indent(20);
   
@@ -312,11 +312,7 @@
         case 359: // --credits
           show_credits = true;
           break;
-            
-        case 'l': // -l, --level
-          levelfile = argp.get_argument();
-          break;
-          
+
         case 'e': // -e, --editor
           editor = true;
 
@@ -396,13 +392,6 @@
         case 'f': // --fullscreen
           fullscreen_enabled = true;
           break;
-
-#if 0
-        case 'R': // --refresh-rate
-          sscanf(argp.get_argument().c_str(), "%d", &refresh_rate);
-          std::cout << "Pingus: Refresh rate is " << refresh_rate << std::endl;
-          break;
-#endif
           
         case 'w': // --window
           fullscreen_enabled = false;
@@ -442,7 +431,7 @@
           config_file = argp.get_argument();
           break;
 
-        case 352:
+        case 'D':
           if (argp.get_argument() == "all")
             {
               pingus_debug_flags |= PINGUS_DEBUG_ALL;
@@ -682,7 +671,6 @@
   std::cout << "fullscreen:              "
             << (fullscreen_enabled ? " enabled" : "disabled")
             << std::endl;
-  //std::cout << "refresh rate:            " << refresh_rate << std::endl;
   std::cout << "using OpenGL:            " << use_opengl << std::endl;
 
   std::cout << std::endl;

Modified: trunk/pingus/src/pingus_menu.cpp
===================================================================
--- trunk/pingus/src/pingus_menu.cpp    2007-09-03 22:05:38 UTC (rev 3073)
+++ trunk/pingus/src/pingus_menu.cpp    2007-09-03 23:01:36 UTC (rev 3074)
@@ -236,6 +236,7 @@
               Vector3f((gc.get_width()/2) - (background.get_width()/2),
                        static_cast<float>(Display::get_height()/10)));
     }
+
 #ifdef OFFICIAL_PINGUS_BUILD
   gc.print_left(Fonts::pingus_small, 25.0f, 
                 static_cast<float>(Display::get_height()-114),
@@ -245,6 +246,7 @@
                 static_cast<float>(Display::get_height()-114),
                 "Pingus version "VERSION" (unofficial build), Copyright (C) 
2003 Ingo Ruhnke <address@hidden>\n");
 #endif
+
   gc.print_left(Fonts::pingus_small, 25.0f, 
                 static_cast<float>(Display::get_height()-80),
                 "Pingus comes with ABSOLUTELY NO WARRANTY. This is free 
software, and you are\n"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]