LanguagePatches / LanguagePatches-Framework

Framework that can be used to translate Kerbal Space Program
MIT License
2 stars 1 forks source link

corrected errors with assembly which aren't loaded #7

Closed malahx closed 7 years ago

malahx commented 7 years ago

Hello, the API try to getTypes from not loaded plugins (example : a plugin which aren't updated for the last version of KSP).

ReflectionTypeLoadException: The classes in the module cannot be loaded. at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) at System.Reflection.Assembly.GetTypes () [0x00000] in :0 at LanguagePatches.LanguageAPI.m0 (System.Reflection.Assembly a) [0x00000] in :0 at System.Linq.Enumerable+cIterator122[System.Reflection.Assembly,System.Type].MoveNext () [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[System.Type].AddEnumerable (IEnumerable1 enumerable) [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[System.Type]..ctor (IEnumerable1 collection) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToArray[Type] (IEnumerable1 source) [0x00000] in :0 at LanguagePatches.LanguageAPI..cctor () [0x00000] in :0 Rethrow as TypeInitializationException: An exception was thrown by the type initializer for LanguagePatches.LanguageAPI at QuickBrake.QLang.translate (System.String lang, System.String text) [0x00000] in :0 at QuickBrake.QLang.translate (System.String text) [0x00000] in :0 at QuickBrake.QBlizzyToolbar.Start () [0x00000] in :0 at QuickBrake.QGUI.Start () [0x00000] in :0

I've seen this error with mods like ShowFPS & AnomalySurveyor which are compiled for KSP 1.1.X