Formats: Make ElfReader convenience items public

This commit is contained in:
Katy Coe
2021-01-11 19:13:09 +01:00
parent 52f477698e
commit f7e99f2e42
2 changed files with 100 additions and 97 deletions

View File

@@ -130,7 +130,8 @@ namespace Il2CppInspector
public static IFileFormatStream Load(Stream stream, LoadOptions loadOptions = null, EventHandler<string> statusCallback = null) {
var types = Assembly.GetExecutingAssembly().DefinedTypes
.Where(x => x.ImplementedInterfaces.Contains(typeof(IFileFormatStream)) && !x.IsGenericTypeDefinition);
.Where(x => x.ImplementedInterfaces.Contains(typeof(IFileFormatStream))
&& !x.IsGenericTypeDefinition && !x.IsAbstract && !x.IsInterface);
// Copy to memory-based stream
var binaryObjectStream = new BinaryObjectStream();