void UpdateSignInInfo(string user, string password) { // If the client has changed some settings in the meantime, make sure we keep the changes if (!Options.Load()) { return; } Options.Set("launcher-cc-username", user); Options.Set("launcher-cc-password", Secure.Encode(password, user)); Options.Save(); }
void SaveToOptions(ClientStartData data, bool ccSkins) { if (!Options.Load()) { return; } Options.Set("launcher-dc-username", data.RealUsername); Options.Set("launcher-dc-ip", data.Ip); Options.Set("launcher-dc-port", data.Port); Options.Set("launcher-dc-mppass", Secure.Encode(data.Mppass, data.RealUsername)); Options.Set("launcher-dc-ccskins", ccSkins); Options.Save(); }
internal static void CheckSettings(ClientStartData data, bool classiCubeSkins, out bool shouldExit) { shouldExit = false; // Make sure if the client has changed some settings in the meantime, we keep the changes if (!Options.Load()) { return; } shouldExit = Options.GetBool(OptionsKey.AutoCloseLauncher, false); if (data == null) { return; } Options.Set("launcher-username", data.RealUsername); Options.Set("launcher-ip", data.Ip); Options.Set("launcher-port", data.Port); Options.Set("launcher-mppass", Secure.Encode(data.Mppass, data.RealUsername)); Options.Set("launcher-ccskins", classiCubeSkins); Options.Save(); }