From 1692923e1839e49c076575ffc497b95e78230066 Mon Sep 17 00:00:00 2001 From: Junior Date: Tue, 29 Apr 2025 17:14:19 -0300 Subject: [PATCH] Changes for RustyHearts-API 1.3.0 --- RHLauncher.Forms/ChangePwdForm.cs | 145 ++++++++++-------- RHLauncher.Forms/ConfigForm.Designer.cs | 40 ++++- RHLauncher.Forms/ConfigForm.cs | 155 +++++++++++++++++--- RHLauncher.Forms/ConfigForm.resx | 12 +- RHLauncher.Forms/LauncherForm.cs | 27 ++-- RHLauncher.Forms/LoginForm.cs | 113 +++++++------- RHLauncher.Forms/RegisterForm.cs | 104 ++++++++----- RHLauncher.Helper/Configuration.cs | 29 ++-- RHLauncher.Helper/HttpResponse.cs | 36 +++++ RHLauncher.Helper/IniFile.cs | 4 +- RHLauncher.csproj | 4 +- RHLauncher.i8n/LocalizedStrings.Designer.cs | 31 +++- RHLauncher.i8n/LocalizedStrings.ko.resx | 13 +- RHLauncher.i8n/LocalizedStrings.resx | 13 +- 14 files changed, 500 insertions(+), 226 deletions(-) create mode 100644 RHLauncher.Helper/HttpResponse.cs diff --git a/RHLauncher.Forms/ChangePwdForm.cs b/RHLauncher.Forms/ChangePwdForm.cs index 901afe3..173ec41 100644 --- a/RHLauncher.Forms/ChangePwdForm.cs +++ b/RHLauncher.Forms/ChangePwdForm.cs @@ -1,4 +1,5 @@ -using RHLauncher.RHLauncher.Helper; +using Newtonsoft.Json; +using RHLauncher.RHLauncher.Helper; using RHLauncher.RHLauncher.i8n; using System.Text.RegularExpressions; @@ -8,10 +9,10 @@ namespace RHLauncher { private RegistryHandler registryHandler = new(); - public string SendPasswordCodeUrl = Configuration.Default.SendPasswordCodeUrl; - public string VerifyCodeUrl = Configuration.Default.VerifyCodeUrl; - public string ChangePasswordUrl = Configuration.Default.ChangePasswordUrl; - public string Lang = Configuration.Default.Lang; + private readonly string SendPasswordCodeUrl = Configuration.Default.SendPasswordCodeUrl; + private readonly string VerifyCodeUrl = Configuration.Default.VerifyCodeUrl; + private readonly string ChangePasswordUrl = Configuration.Default.ChangePasswordUrl; + private readonly string Lang = Configuration.Default.Lang; private List