ELF: Tidy up LoadOptions and handling of dumped files

This commit is contained in:
Katy Coe
2020-12-13 01:37:28 +01:00
parent 752cd6184c
commit 625cba808f
6 changed files with 28 additions and 13 deletions

View File

@@ -139,9 +139,13 @@ namespace Il2CppInspector.CLI
return 1;
}
// Check image base
var loadOptions = new LoadOptions();
// Set load options
var loadOptions = new LoadOptions {
ImageBase = 0xffffffff_ffffffff,
BinaryFilePath = options.BinaryFiles.First()
};
// Check image base
if (!string.IsNullOrEmpty(options.ElfImageBaseString)) {
try {
loadOptions.ImageBase = Convert.ToUInt64(options.ElfImageBaseString, 16);