Simplify location.

This commit is contained in:
2026-07-30 22:14:01 -05:00
parent b0ba936ebe
commit a319bdfc90
@@ -1007,15 +1007,13 @@ namespace FlaxEngine.Interop
scriptingAssemblyLoadContext = new AssemblyLoadContext("Flax", isCollectible: true);
scriptingAssemblyLoadContext.Resolving += OnScriptingAssemblyLoadContextResolving;
// Load Microsoft.CSharp assembly into collectible ALC for dynamic binder support
scriptingAssemblyLoadContext.LoadFromAssemblyPath(typeof(Microsoft.CSharp.RuntimeBinder.Binder).Assembly.Location);
#else
scriptingAssemblyLoadContext = new AssemblyLoadContext("Flax", isCollectible: false);
#endif
DelegateHelpers.InitMethods();
#if FLAX_EDITOR
// Load Microsoft.CSharp assembly into collectible ALC for dynamic binder support
scriptingAssemblyLoadContext.LoadFromAssemblyPath(typeof(Microsoft.CSharp.RuntimeBinder.Binder).Assembly.Location);
#endif
}
[UnmanagedCallersOnly]