编辑器模式重定向所有热更dll,以防编辑器运行AB时出现两份元数据。

编辑器模式重定向所有热更dll,以防编辑器运行AB时出现两份元数据。
This commit is contained in:
ALEXTANG
2023-12-18 19:49:46 +08:00
parent 6a87db76ee
commit 1423a3716a

View File

@@ -116,8 +116,7 @@ namespace GameMain
{ {
ChangeState<ProcedureStartGame>(m_procedureOwner); ChangeState<ProcedureStartGame>(m_procedureOwner);
#if UNITY_EDITOR #if UNITY_EDITOR
m_MainLogicAssembly = AppDomain.CurrentDomain.GetAssemblies(). m_MainLogicAssembly = GetMainLogicAssembly();
First(assembly => $"{assembly.GetName().Name}.dll" == SettingsUtils.HybridCLRCustomGlobalSettings.LogicMainDllName);
#endif #endif
if (m_MainLogicAssembly == null) if (m_MainLogicAssembly == null)
{ {