Ghidra: Rebase dumped ELF images correctly (#120)

This commit is contained in:
Katy Coe
2021-01-10 17:41:52 +01:00
parent 34ebd31deb
commit 9437749455
2 changed files with 3 additions and 2 deletions

View File

@@ -61,7 +61,8 @@ namespace Il2CppInspector.Outputs
.Replace("%SCRIPTFILENAME%", Path.GetFileName(outputFile))
.Replace("%TYPE_HEADER_RELATIVE_PATH%", typeHeaderRelativePath.ToEscapedString())
.Replace("%JSON_METADATA_RELATIVE_PATH%", jsonMetadataRelativePath.ToEscapedString())
.Replace("%TARGET_UNITY_VERSION%", model.UnityHeaders.ToString());
.Replace("%TARGET_UNITY_VERSION%", model.UnityHeaders.ToString())
.Replace("%IMAGE_BASE%", model.Package.BinaryImage.ImageBase.ToAddressString());
File.WriteAllText(outputFile, script);
}