Changes

Jump to navigation Jump to search
9 bytes removed ,  12:32, 21 July 2020
Line 63: Line 63:     
If you want to reference external dll files, you can either put them in the Software Inc_Data\Managed folder, or add this snipped to your ModMeta code to load dll's from a subfolder: (Note that this requires GiveMeFreedom)
 
If you want to reference external dll files, you can either put them in the Software Inc_Data\Managed folder, or add this snipped to your ModMeta code to load dll's from a subfolder: (Note that this requires GiveMeFreedom)
<pre>
+
public override void Initialize(ModController.DLLMod parentMod)
public override void Initialize(ModController.DLLMod parentMod)
+
    {
    {
+
    AppDomain.CurrentDomain.AssemblyResolve += (x, y) => Assembly.LoadFrom(Path.Combine(parentMod.FolderPath(), "'''SubFolder'''/" + y.Name.Substring(0, y.Name.IndexOf(",")) + ".dll"));
    AppDomain.CurrentDomain.AssemblyResolve += (x, y) => Assembly.LoadFrom(Path.Combine(parentMod.FolderPath(), "<b>SubFolder</b>/" + y.Name.Substring(0, y.Name.IndexOf(",")) + ".dll"));
+
    base.Initialize(parentMod);
    base.Initialize(parentMod);
+
    }
    }
  −
</pre>
      
= Events =
 
= Events =

Navigation menu