Add ReadMappedNullTerminatedString
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Il2CppInspector
|
|||||||
uint ReadUInt32();
|
uint ReadUInt32();
|
||||||
ushort ReadUInt16();
|
ushort ReadUInt16();
|
||||||
byte ReadByte();
|
byte ReadByte();
|
||||||
|
string ReadMappedNullTerminatedString(uint uiAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class FileFormatReader<T> : BinaryObjectReader, IFileFormatReader where T : FileFormatReader<T>
|
internal class FileFormatReader<T> : BinaryObjectReader, IFileFormatReader where T : FileFormatReader<T>
|
||||||
@@ -91,6 +92,10 @@ namespace Il2CppInspector
|
|||||||
return ReadArray<U>(MapVATR(uiAddr), count);
|
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
|
// Perform file format-based post-load manipulations to the IL2Cpp data
|
||||||
public virtual void FinalizeInit(Il2CppBinary il2cpp) { }
|
public virtual void FinalizeInit(Il2CppBinary il2cpp) { }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user