dkavolis / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
77 stars 32 forks source link

ReflectionTypeLoadExceptions break FAR #148

Open JonnyOThan opened 6 months ago

JonnyOThan commented 6 months ago

https://github.com/dkavolis/Ferram-Aerospace-Research/blob/c769cbd3d23ec9fd22538c1eb8b57fd2fcd025c6/FerramAerospaceResearch/ToolbarWrapper.cs#L717

This line (and any others that use loadedAssemblies is very susceptible to breaking from other mods throwing ReflectionTypeLoadExceptions. AssemblyLoader.TypeOperation is the safe way to iterate over all loaded types.