From dab5ebefc174f3fd7c0d64538bc2532c1be13091 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Sun, 2 Mar 2025 12:48:30 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Добавлена проверка на существование SII_Decrypt.dll * Убран несущественный this в UpdateForm Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- MainForm.cs | 6 ++++++ UpdateForm.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/MainForm.cs b/MainForm.cs index 5156902..36bf785 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -138,6 +138,12 @@ namespace SaveWizard_rewritten private void MainForm_Load(object sender, EventArgs e) { + if (!File.Exists("SII_Decrypt.dll")) + { + Utils.ShowError("SII_Decrypt.dll not found! Place dll file near this executable."); + Close(); + } + items = new Dictionary { { txt_money, new WindowText(chk_money, "money_account:") }, diff --git a/UpdateForm.cs b/UpdateForm.cs index 41274a6..42e09b8 100644 --- a/UpdateForm.cs +++ b/UpdateForm.cs @@ -74,7 +74,7 @@ namespace SaveWizard_rewritten private void backgroundWorker1_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) { - this.Close(); + Close(); } } }