IL2CPP: Make FileFormatReader public

This commit is contained in:
Katy Coe
2020-02-07 06:08:38 +01:00
parent 9376b15fcd
commit 59043a723a

View File

@@ -49,7 +49,7 @@ namespace Il2CppInspector
List<U> ReadMappedObjectPointerArray<U>(ulong uiAddr, int count) where U : new(); List<U> ReadMappedObjectPointerArray<U>(ulong uiAddr, int count) where U : new();
} }
internal class FileFormatReader public class FileFormatReader
{ {
// Helper method to try all defined file formats when the contents of the binary is unknown // Helper method to try all defined file formats when the contents of the binary is unknown
public static IFileFormatReader Load(string filename) => Load(new FileStream(filename, FileMode.Open, FileAccess.Read)); public static IFileFormatReader Load(string filename) => Load(new FileStream(filename, FileMode.Open, FileAccess.Read));
@@ -68,7 +68,7 @@ namespace Il2CppInspector
} }
} }
internal class FileFormatReader<T> : BinaryObjectReader, IFileFormatReader where T : FileFormatReader<T> public class FileFormatReader<T> : BinaryObjectReader, IFileFormatReader where T : FileFormatReader<T>
{ {
public FileFormatReader(Stream stream) : base(stream) { } public FileFormatReader(Stream stream) : base(stream) { }