Exemple #1
0
        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();
        }
Exemple #2
0
        protected static void LoadMods()
        {
            var searchDirectory = Path.Combine(Paths.PatcherPluginPath, "../mods");

            _log.LogInfo($"Searching for mods in {searchDirectory}");

            ModFinder.Find(searchDirectory).ToList().ForEach(LoadMod);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        private void Awake()
        {
            var searchDirectory = Path.Combine(Paths.PluginPath, "../mods");

            ModFinder.Find(searchDirectory).ToList().ForEach(LoadMod);
        }