From 414b8c413b216ad215ceccfae4a9131b56d06496 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Sun, 20 Apr 2025 22:36:08 +0700 Subject: [PATCH] Update * Moved updating configs to another repository Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- SaveWizard/UpdateForm.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SaveWizard/UpdateForm.cs b/SaveWizard/UpdateForm.cs index 737f3a1..b060ef4 100644 --- a/SaveWizard/UpdateForm.cs +++ b/SaveWizard/UpdateForm.cs @@ -11,7 +11,7 @@ namespace SaveWizard { public partial class UpdateForm: Form { - private static readonly string githubLink = "https://raw.githubusercontent.com/JDM170/SaveWizard/configs/"; + private static readonly string githubLink = "https://raw.githubusercontent.com/JDM170/SaveWizard_configs/main/"; public UpdateForm() { @@ -47,7 +47,7 @@ namespace SaveWizard using (WebClient wb = new WebClient()) { wb.Encoding = Encoding.UTF8; - string responseInString = wb.DownloadString($"{githubLink}configs/version.cfg"); + string responseInString = wb.DownloadString($"{githubLink}version.cfg"); Dictionary result = JsonConvert.DeserializeObject>(responseInString); string[] splitted; string path; @@ -58,7 +58,7 @@ namespace SaveWizard CheckPath(path); if (Utils.GenerateMD5(path) != unit.Value) { - string newConfigText = wb.DownloadString($"{githubLink}{path}"); + string newConfigText = wb.DownloadString($"{githubLink}{path.Replace("configs/", "")}"); File.WriteAllText(Path.Combine(Environment.CurrentDirectory, path), newConfigText.Replace("\n", "\r\n")); } backgroundWorker1.ReportProgress(progressBar1.Value + 1);