From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl

---
 Main/System/Debug/DebugUtility.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Main/System/Debug/DebugUtility.cs b/Main/System/Debug/DebugUtility.cs
index c66db29..67551b2 100644
--- a/Main/System/Debug/DebugUtility.cs
+++ b/Main/System/Debug/DebugUtility.cs
@@ -47,8 +47,12 @@
             }
             else
             {
+#if !UNITY_WEBGL
                 var parentDirectory = Directory.GetParent(Application.persistentDataPath);
                 debugAccount = File.Exists(parentDirectory + "/Debug");
+#else
+                debugAccount = false;
+#endif
             }
 
             if (LocalSave.GetString("#@#BrancH") != string.Empty)
@@ -70,6 +74,7 @@
 
             if (debugAccount)
             {
+#if !UNITY_WEBGL
                 if (Application.isMobilePlatform)
                 {
                     var parentDirectory = Directory.GetParent(Application.persistentDataPath);
@@ -83,6 +88,7 @@
                         }
                     }
                 }
+#endif
             }
         }).Forget();
         

--
Gitblit v1.8.0