From 38aea9a883ec792d49bee91bfcec5468c15eff7a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 May 2014 12:53:30 +0300 Subject: Move options into settings. --- src/client.h | 62 +----------------------------------------------------------- 1 file changed, 1 insertion(+), 61 deletions(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 06bc1faf0..e2e5a84de 100644 --- a/src/client.h +++ b/src/client.h @@ -95,62 +95,7 @@ class Client final : public ConfigListener, public ActionListener { public: - /** - * A structure holding the values of various options that can be passed - * from the command line. - */ - struct Options - { - Options() : - username(), - password(), - character(), - brandingPath(), - updateHost(), - dataPath(), - homeDir(), - logFileName(), - chatLogDir(), - configDir(), - localDataDir(), - screenshotDir(), - test(), - serverName(), - serverPort(0), - printHelp(false), - printVersion(false), - skipUpdate(false), - chooseDefault(false), - noOpenGL(false), - safeMode(false), - testMode(false) - {} - - std::string username; - std::string password; - std::string character; - std::string brandingPath; - std::string updateHost; - std::string dataPath; - std::string homeDir; - std::string logFileName; - std::string chatLogDir; - std::string configDir; - std::string localDataDir; - std::string screenshotDir; - std::string test; - std::string serverName; - uint16_t serverPort; - bool printHelp; - bool printVersion; - bool skipUpdate; - bool chooseDefault; - bool noOpenGL; - bool safeMode; - bool testMode; - }; - - explicit Client(const Options &options); + explicit Client(); A_DELETE_COPY(Client) @@ -189,9 +134,6 @@ public: void setMouseFocused(const bool n) { mMouseFocused = n; } - const Options &getOptions() const A_WARN_UNUSED - { return mOptions; } - bool isKeyboardVisible() const; void setGuiAlpha(const float n) @@ -314,8 +256,6 @@ private: #endif #endif - Options mOptions; - std::string mRootDir; std::string mLogFileName; -- cgit v1.2.3-70-g09d2