private static void CreateTrueRandomizerMod(Options opts, GameFileService gameFileService, ModManager modManager) { GameFiles gameFiles = gameFileService.ReadAllFiles(); modManager.ApplyMods(gameFiles); if (opts.IsJsonOutput || opts.IsJsonOnly) { gameFileService.WriteModifiedJsonFiles(gameFiles, opts.OutputPath); } if (!opts.IsJsonOnly) { var packageFilePath = new FilePath(Path.GetFullPath(opts.OutputPath), opts.SeedText, Constants.FileExtensionPak, Constants.DefaultPakFileName); gameFileService.WritePackagedModFile(gameFiles, packageFilePath); } }
private void ApplyModsButton_Click(object sender, RoutedEventArgs e) { ModManager.ApplyMods(); MessageBox.Show("Mods have been applied!", "BIEMM", MessageBoxButton.OK, MessageBoxImage.Information); }