private static void AddMod(ModEntry mod) { // Mods will be disabled without dll. var dll = mod.Metadata.Dlls = new DllMeta[1]; dll[0] = new DllMeta { Methods = new Dictionary <string, HashSet <string> >() }; dll[0].Methods.Add("MainMod", new HashSet <string>()); ModScanner.AllMods.Add(mod); }
public static void AddMod(ModEntry mod) { if (mod.Metadata.Actions == null && mod.Metadata.Dlls == null) { // Mods will be disabled without content. var dll = mod.Metadata.Dlls = new DllMeta[1]; dll[0] = new DllMeta { Methods = new Dictionary <string, HashSet <string> >() }; dll[0].Methods.Add("ActionMod", new HashSet <string> { "Dummy" }); } ModLoader.AllMods.Add(mod); }