예제 #1
0
        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);
            }
        }
예제 #2
0
 private void ApplyModsButton_Click(object sender, RoutedEventArgs e)
 {
     ModManager.ApplyMods();
     MessageBox.Show("Mods have been applied!", "BIEMM", MessageBoxButton.OK,
                     MessageBoxImage.Information);
 }