Add ReadMappedNullTerminatedString

This commit is contained in:
Katy Coe
2019-10-16 16:18:44 +02:00
parent e0385ca46e
commit d49a066424

View File

@@ -31,6 +31,7 @@ namespace Il2CppInspector
uint ReadUInt32();
ushort ReadUInt16();
byte ReadByte();
string ReadMappedNullTerminatedString(uint uiAddr);
}
internal class FileFormatReader<T> : BinaryObjectReader, IFileFormatReader where T : FileFormatReader<T>
@@ -91,6 +92,10 @@ namespace Il2CppInspector
return ReadArray<U>(MapVATR(uiAddr), count);
}
public string ReadMappedNullTerminatedString(uint uiAddr) {
return ReadNullTerminatedString(MapVATR(uiAddr));
}
// Perform file format-based post-load manipulations to the IL2Cpp data
public virtual void FinalizeInit(Il2CppBinary il2cpp) { }
}