From 08f33b8fa1e5e46cd242180bd0d8525664840888 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 12 Dec 2020 20:15:28 +0100 Subject: [PATCH] Tests: Allow LoadOptions to be specified in TestRunner --- Il2CppTests/TestRunner.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppTests/TestRunner.cs b/Il2CppTests/TestRunner.cs index b1f2a50..d4b89a7 100644 --- a/Il2CppTests/TestRunner.cs +++ b/Il2CppTests/TestRunner.cs @@ -18,7 +18,7 @@ namespace Il2CppInspector [TestFixture] public partial class TestRunner { - private void runTest(string testPath) { + private void runTest(string testPath, LoadOptions loadOptions = null) { // Android var testFile = testPath + @"\" + Path.GetFileName(testPath) + ".so"; if (!File.Exists(testFile)) @@ -32,7 +32,7 @@ namespace Il2CppInspector if (!File.Exists(testFile)) testFile = testPath + @"\" + Path.GetFileName(testPath); - var inspectors = Il2CppInspector.LoadFromFile(testFile, testPath + @"\global-metadata.dat"); + var inspectors = Il2CppInspector.LoadFromFile(testFile, testPath + @"\global-metadata.dat", loadOptions); // If null here, there was a problem parsing the files if (inspectors == null)