]> git.mxchange.org Git - flightgear.git/commitdiff
Remove --jpg-httpd option
authorTorsten Dreyer <torsten@ŧ3r.de>
Thu, 2 Oct 2014 09:33:45 +0000 (11:33 +0200)
committerTorsten Dreyer <torsten@ŧ3r.de>
Thu, 2 Oct 2014 09:33:45 +0000 (11:33 +0200)
the original implementation of a screenshot server is now
replaced by the mongoose httpd /screenshot URI which provides
more features.

src/Main/options.cxx

index 9b9946e27d10f43906b0f892306a8c90de88d2a1..48efc9c50c7cd9b8a6c560432cefa07e6a3a200e 100644 (file)
@@ -950,6 +950,15 @@ fgOptStartDateGmt( const char *arg )
     return FG_OPTIONS_OK;
 }
 
+static int
+fgOptJpgHttpd( const char * arg )
+{
+  SG_LOG(SG_ALL,SG_ALERT,
+   "the option --jpg-httpd is no longer supported! Please use --httpd instead."
+   " URL for the screenshot within the new httpd is http://YourFgServer:xxxx/screenshot");
+  return FG_OPTIONS_EXIT;
+}
+
 static int
 fgOptHttpd( const char * arg )
 {
@@ -1604,7 +1613,7 @@ struct OptionDesc {
     {"atcsim",                       true,  OPTION_CHANNEL, "", false, "dummy", 0 },
     {"atlas",                        true,  OPTION_CHANNEL | OPTION_MULTI, "", false, "", 0 },
     {"httpd",                        true,  OPTION_FUNC   , "", false, "", fgOptHttpd },
-    {"jpg-httpd",                    true,  OPTION_CHANNEL, "", false, "", 0 },
+    {"jpg-httpd",                    true,  OPTION_FUNC,    "", false, "", fgOptJpgHttpd },
     {"native",                       true,  OPTION_CHANNEL | OPTION_MULTI, "", false, "", 0 },
     {"native-ctrls",                 true,  OPTION_CHANNEL | OPTION_MULTI, "", false, "", 0 },
     {"native-fdm",                   true,  OPTION_CHANNEL | OPTION_MULTI, "", false, "", 0 },