Ferram-Aerospace-Research icon indicating copy to clipboard operation
Ferram-Aerospace-Research copied to clipboard

ReflectionTypeLoadExceptions break FAR

Open JonnyOThan opened this issue 1 year ago • 0 comments

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.

JonnyOThan avatar Jan 17 '24 18:01 JonnyOThan