/// <summary> /// Loads all the mods stored in this registry. /// </summary> internal static void LoadAllMods() { Loader loader = new Loader(); string message = string.Empty; foreach (IMod item in LoadedMods) { ModInformation info = item.GetInfo(); MasterLog.DebugWriteLine("Loading mod: " + info.DisplayName + "(" + info.ModID + ")"); ProtoUtil.RegisterAssembly(item.GetType().Assembly); List <Load.IGameLoader> loadJobs = item.Load(); loader.LoadAll(ref message, loadJobs); MasterLog.DebugWriteLine("Done loading: " + info.DisplayName + "(" + info.ModID + ")"); } }
public void InitialStartup() { ProtoUtil.RegisterAssembly(Assembly.GetExecutingAssembly()); }