fix assembly not working when NH isnt installed

This commit is contained in:
_nebula 2024-04-25 23:14:53 +01:00
parent 40c2c22d3f
commit f95ddb6c16

View File

@ -385,6 +385,11 @@ public class QSBCore : ModBehaviour
DebugLog.DebugWrite("Running RuntimeInitializeOnLoad methods for our assemblies", MessageType.Info);
foreach (var path in Directory.EnumerateFiles(Helper.Manifest.ModFolderPath, "*.dll"))
{
if (Path.GetFileNameWithoutExtension(path) == "QSB-NH")
{
continue;
}
var assembly = Assembly.LoadFile(path);
Init(assembly);
}