Skip to content

Commit

Permalink
fix assembly not working when NH isnt installed
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Apr 25, 2024
1 parent 40c2c22 commit f95ddb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions QSB/QSBCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ static void Init(Assembly assembly)
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);
}
Expand Down

0 comments on commit f95ddb6

Please sign in to comment.