mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 18:25:18 +00:00
fix assembly not working when NH isnt installed
This commit is contained in:
parent
40c2c22d3f
commit
f95ddb6c16
@ -385,6 +385,11 @@ public class QSBCore : ModBehaviour
|
|||||||
DebugLog.DebugWrite("Running RuntimeInitializeOnLoad methods for our assemblies", MessageType.Info);
|
DebugLog.DebugWrite("Running RuntimeInitializeOnLoad methods for our assemblies", MessageType.Info);
|
||||||
foreach (var path in Directory.EnumerateFiles(Helper.Manifest.ModFolderPath, "*.dll"))
|
foreach (var path in Directory.EnumerateFiles(Helper.Manifest.ModFolderPath, "*.dll"))
|
||||||
{
|
{
|
||||||
|
if (Path.GetFileNameWithoutExtension(path) == "QSB-NH")
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
var assembly = Assembly.LoadFile(path);
|
var assembly = Assembly.LoadFile(path);
|
||||||
Init(assembly);
|
Init(assembly);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user