Advertisement
Vultraz

Untitled

Jun 5th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.34 KB | None | 0 0
  1.  src/commandline_options.cpp | 15 ---------------
  2.  src/commandline_options.hpp | 10 ----------
  3.  src/game_launcher.cpp       | 26 --------------------------
  4.  3 files changed, 51 deletions(-)
  5.  
  6. diff --git a/src/commandline_options.cpp b/src/commandline_options.cpp
  7. index 6cc779d..90d16c4 100644
  8. --- a/src/commandline_options.cpp
  9. +++ b/src/commandline_options.cpp
  10. @@ -118,11 +118,6 @@ commandline_options::commandline_options (const std::vector<std::string>& args)
  11.     preprocess_output_macros(),
  12.     preprocess_path(),
  13.     preprocess_target(),
  14. -   proxy(false),
  15. -   proxy_address(),
  16. -   proxy_password(),
  17. -   proxy_port(),
  18. -   proxy_user(),
  19.     resolution(),
  20.     rng_seed(),
  21.     server(),
  22. @@ -417,16 +412,6 @@ commandline_options::commandline_options (const std::vector<std::string>& args)
  23.         preprocess_input_macros = vm["preprocess-input-macros"].as<std::string>();
  24.     if (vm.count("preprocess-output-macros"))
  25.         preprocess_output_macros = vm["preprocess-output-macros"].as<std::string>();
  26. -   if (vm.count("proxy"))
  27. -       proxy = true;
  28. -   if (vm.count("proxy-address"))
  29. -       proxy_address = vm["proxy-address"].as<std::string>();
  30. -   if (vm.count("proxy-password"))
  31. -       proxy_password = vm["proxy-password"].as<std::string>();
  32. -   if (vm.count("proxy-port"))
  33. -       proxy_port = vm["proxy-port"].as<std::string>();
  34. -   if (vm.count("proxy-user"))
  35. -       proxy_user = vm["proxy-user"].as<std::string>();
  36.     if (vm.count("resolution"))
  37.         parse_resolution_(vm["resolution"].as<std::string>());
  38.     if (vm.count("rng-seed"))
  39. diff --git a/src/commandline_options.hpp b/src/commandline_options.hpp
  40. index a77e663..44bf073 100644
  41. --- a/src/commandline_options.hpp
  42. +++ b/src/commandline_options.hpp
  43. @@ -156,16 +156,6 @@ public:
  44.     boost::optional<std::string> preprocess_path;
  45.     /// Target (output) path that was given to the --preprocess option.
  46.     boost::optional<std::string> preprocess_target;
  47. -   /// True if --proxy was given on the command line. Enables proxy mode.
  48. -   bool proxy;
  49. -   /// Non-empty if --proxy-address was given on the command line.
  50. -   boost::optional<std::string> proxy_address;
  51. -   /// Non-empty if --proxy-password was given on the command line.
  52. -   boost::optional<std::string> proxy_password;
  53. -   /// Non-empty if --proxy-port was given on the command line.
  54. -   boost::optional<std::string> proxy_port;
  55. -   /// Non-empty if --proxy-user was given on the command line.
  56. -   boost::optional<std::string> proxy_user;
  57.     /// Pair of AxB values specified after --resolution. Changes Wesnoth resolution.
  58.     boost::optional<boost::tuple<int,int> > resolution;
  59.     /// RNG seed specified by --rng-seed option. Initializes RNG with given seed.
  60. diff --git a/src/game_launcher.cpp b/src/game_launcher.cpp
  61. index 54fbdb4..c27d35f 100644
  62. --- a/src/game_launcher.cpp
  63. +++ b/src/game_launcher.cpp
  64. @@ -44,7 +44,6 @@
  65.  #include "map/exception.hpp"
  66.  #include "game_initialization/multiplayer.hpp"              // for start_client, etc
  67.  #include "game_initialization/create_engine.hpp"
  68. -#include "network.hpp"
  69.  #include "game_initialization/playcampaign.hpp"             // for play_game, etc
  70.  #include "preferences.hpp"              // for disable_preferences_save, etc
  71.  #include "savegame.hpp"                 // for clean_saves, etc
  72. @@ -214,31 +213,6 @@ game_launcher::game_launcher(const commandline_options& cmdline_opts, const char
  73.         no_music = true;
  74.     if (cmdline_opts_.nosound)
  75.         no_sound = true;
  76. -   //These commented lines should be used to implement support of connection
  77. -   //through a proxy via command line options.
  78. -   //The ANA network module should implement these methods (while the SDL_net won't.)
  79. -   if (cmdline_opts_.proxy)
  80. -       network::enable_connection_through_proxy();
  81. -   if (cmdline_opts_.proxy_address)
  82. -   {
  83. -       network::enable_connection_through_proxy();
  84. -       network::set_proxy_address(*cmdline_opts_.proxy_address);
  85. -   }
  86. -   if (cmdline_opts_.proxy_password)
  87. -   {
  88. -       network::enable_connection_through_proxy();
  89. -       network::set_proxy_password(*cmdline_opts_.proxy_password);
  90. -   }
  91. -   if (cmdline_opts_.proxy_port)
  92. -   {
  93. -       network::enable_connection_through_proxy();
  94. -       network::set_proxy_port(*cmdline_opts_.proxy_port);
  95. -   }
  96. -   if (cmdline_opts_.proxy_user)
  97. -   {
  98. -       network::enable_connection_through_proxy();
  99. -       network::set_proxy_user(*cmdline_opts_.proxy_user);
  100. -   }
  101.     if (cmdline_opts_.resolution) {
  102.         const int xres = cmdline_opts_.resolution->get<0>();
  103.         const int yres = cmdline_opts_.resolution->get<1>();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement