Tests: TestRunner sets LoadOptions.BinaryFilePath and finds Linux process maps

This commit is contained in:
Katy Coe
2020-12-14 02:56:29 +01:00
parent 8979625780
commit 9df33597b8

View File

@@ -31,6 +31,15 @@ namespace Il2CppInspector
// iOS
if (!File.Exists(testFile))
testFile = testPath + @"\" + Path.GetFileName(testPath);
// Linux process map
if (!File.Exists(testFile))
testFile = Directory.GetFiles(testPath, "*-maps.txt").FirstOrDefault();
// Set load options
if (loadOptions == null)
loadOptions = new LoadOptions();
loadOptions.BinaryFilePath = testFile;
var inspectors = Il2CppInspector.LoadFromFile(testFile, testPath + @"\global-metadata.dat", loadOptions);