From e086228d90df02901abd543b878f08285ec78e93 Mon Sep 17 00:00:00 2001 From: walon Date: Tue, 2 Jul 2024 17:00:05 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E5=9B=A2=E7=BB=93?= =?UTF-8?q?=E5=BC=95=E6=93=8E=E5=BE=AE=E4=BF=A1=E5=B0=8F=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=94=B1=E4=BA=8E=E5=90=8C=E6=97=B6=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E4=BA=86UNITY=5FWEIXINMINIGAME=E5=92=8CUNITY=5FWEBGL?= =?UTF-8?q?=E5=AE=8F=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=BB=8E=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=9F=A5=E6=89=BEscriptingassemblies.json?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5=EF=BC=8C=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E5=87=BA=E7=8E=B0=E8=84=9A=E6=9C=ACmissing=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HybridCLRHooks/PatchScriptingAssembliesJsonHook.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Editor/3rds/UnityHook/HybridCLRHooks/PatchScriptingAssembliesJsonHook.cs b/Editor/3rds/UnityHook/HybridCLRHooks/PatchScriptingAssembliesJsonHook.cs index e567257..1745d3f 100644 --- a/Editor/3rds/UnityHook/HybridCLRHooks/PatchScriptingAssembliesJsonHook.cs +++ b/Editor/3rds/UnityHook/HybridCLRHooks/PatchScriptingAssembliesJsonHook.cs @@ -35,10 +35,12 @@ namespace HybridCLR.MonoHook private static string BuildMainWindowTitle() { -#if UNITY_WEBGL - string tempJsonPath = $"{Application.dataPath}/../Library/PlayerDataCache/WebGL/Data/ScriptingAssemblies.json"; -#elif UNITY_WEIXINMINIGAME +#if UNITY_WEIXINMINIGAME + Debug.Assert(EditorUserBuildSettings.activeBuildTarget == BuildTarget.WeixinMiniGame); string tempJsonPath = $"{Application.dataPath}/../Library/PlayerDataCache/WeixinMiniGame/Data/ScriptingAssemblies.json"; +#else + Debug.Assert(EditorUserBuildSettings.activeBuildTarget == BuildTarget.WebGL); + string tempJsonPath = $"{Application.dataPath}/../Library/PlayerDataCache/WebGL/Data/ScriptingAssemblies.json"; #endif if (File.Exists(tempJsonPath)) {