Skip to content

Commit 8784088

Browse files
committed
Testing change
1 parent b33cd6d commit 8784088

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Il2CppInterop.Runtime/Startup/Il2CppInteropRuntime.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,20 @@ public static Il2CppInteropRuntime Create(RuntimeConfiguration configuration)
4040
return res;
4141
}
4242

43+
public class FakeListProvider : IAssemblyListProvider
44+
{
45+
public IEnumerable<string> GetAssemblyList()
46+
{
47+
var coreFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
48+
var pluginsFolder = Path.Combine(coreFolder, "../plugins/");
49+
50+
return Directory.EnumerateFiles(pluginsFolder, "*", SearchOption.AllDirectories);
51+
}
52+
}
53+
4354
public override void Start()
4455
{
56+
this.AddAssemblyInjector<BaseHost, FakeListProvider>();
4557
UnityVersionHandler.RecalculateHandlers();
4658
base.Start();
4759
}

0 commit comments

Comments
 (0)