mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-15 09:17:13 +08:00
明确提示原神启动路径错误
This commit is contained in:
@@ -17,6 +17,11 @@ public class SystemControl
|
||||
|
||||
public static async Task<nint> StartFromLocalAsync(string path)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
throw new Exception($"原神启动路径 {path} 不存在,请前往 启动——同时启动原神——原神安装路径 重新进行配置!");
|
||||
}
|
||||
|
||||
// 直接exe启动
|
||||
Process.Start(new ProcessStartInfo(path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user