Skip to content

Commit

Permalink
优化启动时的游戏启动路径校验
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed May 2, 2023
1 parent 1d5a0c3 commit 0cd77d4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MiHoYoStarter/GameFormControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0cd77d4

Please sign in to comment.