【m】10. StoryEditor [1.0.7] - 2026-01-08
### Fixed - 处理IResource多程序集共存产生的无法选择加载器问题
This commit is contained in:
@@ -143,10 +143,7 @@ namespace Stary.Evo.StoryEditor
|
||||
if (string.IsNullOrEmpty(assembly))
|
||||
return new();
|
||||
var asm = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(a => a.GetName().Name == assembly);
|
||||
return asm == null
|
||||
? new()
|
||||
: asm.GetTypes().Where(t => t.IsClass && !t.IsAbstract && typeof(IResource).IsAssignableFrom(t))
|
||||
.Select(t => t.Name).ToHashSet();
|
||||
return asm == null ? new() : asm.GetTypes().Where(t => t.IsClass && !t.IsAbstract && t.GetInterfaces().Any(i => i.Name == nameof(IResource))).Select(t => t.Name).ToHashSet();
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user