From 0cd77d4d7c4a1e710d6f88f5ecf6de702f1940c2 Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Tue, 2 May 2023 14:14:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=AF=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E6=B8=B8=E6=88=8F=E5=90=AF=E5=8A=A8=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MiHoYoStarter/GameFormControl.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MiHoYoStarter/GameFormControl.cs b/MiHoYoStarter/GameFormControl.cs index 3380813..8818b84 100644 --- a/MiHoYoStarter/GameFormControl.cs +++ b/MiHoYoStarter/GameFormControl.cs @@ -159,7 +159,13 @@ private void btnSwitchClick(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtPath.Text)) { - MessageBox.Show($"请先选择【{GameNameCN}】安装路径,才能进行账户切换", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show($"请先选择【{GameNameCN}】游戏启动程序路径,才能进行账户切换", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + return; + } + if (!txtPath.Text.ToLower().EndsWith("exe")) + { + MessageBox.Show($"请先选择正确游戏启动程序路径(注意不是目录,是exe可执行文件)", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + return; } if (lvwAcct.SelectedItems.Count == 0) {