From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl
---
Main/Utility/SystemCMD.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Main/Utility/SystemCMD.cs b/Main/Utility/SystemCMD.cs
index 33eb7d4..a7365f0 100644
--- a/Main/Utility/SystemCMD.cs
+++ b/Main/Utility/SystemCMD.cs
@@ -11,6 +11,10 @@
/// <returns></returns>
public static string RunCmd(string command)
{
+#if UNITY_WEBGL
+ UnityEngine.Debug.LogWarning("SystemCMD.RunCmd is not supported on WebGL");
+ return string.Empty;
+#else
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe"; //纭畾绋嬪簭鍚�
p.StartInfo.Arguments = "/c " + command; //纭畾绋嬪紡鍛戒护琛�
@@ -31,6 +35,7 @@
{
return err; //杈撳嚭鍑烘祦鍙栧緱鍛戒护琛岀粨鏋滄灉
}
+#endif
}
}
--
Gitblit v1.8.0