Skip to content

Commit

Permalink
V2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ARMrAmzing committed Aug 24, 2022
1 parent 19106e2 commit 73a6dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions EnvironmentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ public EnvironmentTest() {
var ver = Environment.OSVersion.Version;
if (!(ver.Major == 10 && ver.Build >= 22000))
{
TopMostMessageBox.Show("您的操作系统不是Windows 11\nYour operating system isn't Windows 11", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(0);
TopMostMessageBox.Show("您的操作系统不是Windows 11,可能无法使用安卓子系统\nYour operating system isn't Windows 11, so you can't perhaps use the Android Subsystem", String.Empty , MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
/*if (!File.Exists("C:\\Program Files\\WindowsApps\\MicrosoftCorporationII.WindowsSubsystemForAndroid_2205.40000.21.0_x64__8wekyb3d8bbwe\\WsaClient\\WsaClient.exe")) {
TopMostMessageBox.Show("您未安装安卓子系统!\nYou haven't installed the Android Subsytem", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(0);
}*/
}
}
Expand Down
1 change: 1 addition & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ private void Debug()
TopMostMessageBox.Show(languageManager.dic[13] + "file" + languageManager.dic[14], string.Empty, MessageBoxButtons.OK, MessageBoxIcon.Information);
TopMostMessageBox.Show(languageManager.dic[15] + "result.standardError" + languageManager.dic[16] + "result.exitCode", languageManager.dic[18], MessageBoxButtons.OK, MessageBoxIcon.Error);
TopMostMessageBox.Show(languageManager.dic[17] + "e", languageManager.dic[18], MessageBoxButtons.OK, MessageBoxIcon.Error);
TopMostMessageBox.Show("您的操作系统不是Windows 11,可能无法使用安卓子系统\nYour operating system isn't Windows 11, so you can't perhaps use the Android Subsystem", String.Empty, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}

0 comments on commit 73a6dbf

Please sign in to comment.