public void Run() { Console.WriteLine("Started OWML."); var config = GetConfig(); RequireCorrectGamePath(config); Console.WriteLine($"Game found at {config.GamePath}"); Console.WriteLine("For detailed log, see Logs/OWML.Log.txt"); CopyGameFiles(config); ListenForOutput(config); var modFinder = new ModFinder(config); ShowModList(modFinder); PatchGame(config); StartGame(config); Console.ReadLine(); }
protected static void LoadMods() { var searchDirectory = Path.Combine(Paths.PatcherPluginPath, "../mods"); _log.LogInfo($"Searching for mods in {searchDirectory}"); ModFinder.Find(searchDirectory).ToList().ForEach(LoadMod); }
static void Main(string[] args) { var owmlConfig = GetOwmlConfig(); var owmlManifest = GetOwmlManifest(); var writer = OutputFactory.CreateOutput(owmlConfig, null, owmlManifest); var modFinder = new ModFinder(owmlConfig, writer); var outputListener = new OutputListener(owmlConfig); var pathFinder = new PathFinder(owmlConfig, writer); var owPatcher = new OWPatcher(owmlConfig, writer); var vrPatcher = new VRPatcher(owmlConfig, writer); var app = new App(owmlConfig, owmlManifest, writer, modFinder, outputListener, pathFinder, owPatcher, vrPatcher); app.Run(args); }
private void Awake() { var searchDirectory = Path.Combine(Paths.PluginPath, "../mods"); ModFinder.Find(searchDirectory).ToList().ForEach(LoadMod); }