Ejemplo n.º 1
0
        public override Task <int> ExecuteAsync(CommandContext context, Settings settings)
        {
            var writer = new GameInfoWriter(settings.InstallPath);

            Console.WriteLine($"Enabling SearchPath for {settings.ModName}");
            writer.Backup().EnableGame(settings.ModName);
            return(Task.FromResult(0));
        }
Ejemplo n.º 2
0
        public override Task <int> ExecuteAsync(CommandContext context, Settings settings)
        {
            var writer   = new GameInfoWriter(settings.InstallPath);
            var locator  = new ModLocator(settings.InstallPath);
            var modNames = (settings.IncludeAll ? locator.FindAllMods() : locator.FindVortexMods()).ToArray();

            if (modNames.Length > 0)
            {
                Console.WriteLine($"Enabling SearchPaths for {string.Join(";", modNames)}");
                writer.Backup().EnableGame(modNames);
                return(Task.FromResult(0));
            }
            else
            {
                Console.WriteLine("No mods found. Exiting.");
                return(Task.FromResult(404));
            }
        }