Fixes bridge dll reflection

This commit is contained in:
Cyberboss
2017-11-13 01:44:37 -05:00
parent 40e8406e74
commit 1f6de3da62
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -542,7 +542,7 @@ namespace TGS.Server
try
{
//Use reflection to ensure these are the droids we're looking for
Assembly.ReflectionOnlyLoadFrom(BridgePath).GetType(DreamDaemonBridgeType, true);
Assembly.ReflectionOnlyLoadFrom(BridgePath).GetType(String.Format("{0}.{1}.{2}.{3}", nameof(TGS), nameof(Interface), DreamDaemonBridgeNamespace, DreamDaemonBridgeType), true);
}
catch (Exception e)
{
+2 -2
View File
@@ -56,11 +56,11 @@ namespace TGS.Server
/// <summary>
/// The namespace that contains the <see cref="ITGInterop"/> bridge class. Used for reflection
/// </summary>
const string DreamDaemonBridgeNamespace = "TGDreamDaemonBridge";
const string DreamDaemonBridgeNamespace = "Bridge";
/// <summary>
/// The <see cref="ITGInterop"/> bridge class. Used for reflection
/// </summary>
const string DreamDaemonBridgeType = DreamDaemonBridgeNamespace + ".DreamDaemonBridge";
const string DreamDaemonBridgeType = "DreamDaemonBridge";
List<Command> ServerChatCommands;