fix: missing files because commit ide for rider is weird
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Loader;
|
||||
using Godot;
|
||||
using OwofGames.GodotLume;
|
||||
|
||||
@@ -21,8 +22,12 @@ public static class ScopeTypesAndNames
|
||||
{
|
||||
if (_assemblyLoadEventHandler != null) return;
|
||||
Initialize();
|
||||
System.Runtime.Loader.AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly())!
|
||||
.Unloading += _ => { Deinitialize(); };
|
||||
AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly())!.Unloading += OnUnloading;
|
||||
}
|
||||
|
||||
private static void OnUnloading(AssemblyLoadContext _)
|
||||
{
|
||||
Deinitialize();
|
||||
}
|
||||
|
||||
private static void Initialize()
|
||||
|
||||
Reference in New Issue
Block a user