private void ListenForOutput(IModConfig config) { var listener = new OutputListener(config); listener.OnOutput += Console.Write; listener.Start(); }
public App(IOwmlConfig owmlConfig, IModManifest owmlManifest, IModConsole writer, IModFinder modFinder, OutputListener listener, PathFinder pathFinder, OWPatcher owPatcher, VRPatcher vrPatcher) { _owmlConfig = owmlConfig; _owmlManifest = owmlManifest; _writer = writer; _modFinder = modFinder; _listener = listener; _pathFinder = pathFinder; _owPatcher = owPatcher; _vrPatcher = vrPatcher; }
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); }