public void LoadMods() { _helper.Logger.Log($"{nameof(Owo)}: {nameof(LoadMods)}"); if (_helper.Config.Verbose) { Application.logMessageReceived += OnLogMessageReceived; } var manifests = _modFinder.GetManifests(); foreach (var manifest in manifests) { LoadMod(manifest); } }
private void ShowModList(IModFinder modFinder) { var manifests = modFinder.GetManifests(); if (!manifests.Any()) { Console.WriteLine("Found no mods."); return; } Console.WriteLine("Found mods:"); foreach (var manifest in manifests) { var stateText = manifest.Enabled ? "" : "(disabled)"; var versionCheckText = manifest.OWMLVersion == OWMLVersion ? "" : $"(mod is for OWML {manifest.OWMLVersion} but you are running OWML {OWMLVersion})"; Console.WriteLine($"* {manifest.UniqueName} ({manifest.Version}) {stateText} {versionCheckText}"); } }