Rework options a bit

This commit is contained in:
VaDiM
2026-05-13 16:21:33 +03:00
parent 82791504dd
commit a195d4dac7
23 changed files with 894 additions and 458 deletions
+7 -7
View File
@@ -30,13 +30,13 @@ namespace AssetStudioCLI
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
Progress.Default = new Progress<int>(ShowCurProgressValue);
Progress.SetInstance(1, new Progress<int>(ShowCurProgressValue));
assetsManager.LoadViaTypeTree = !CLIOptions.f_avoidLoadingViaTypetree.Value;
assetsManager.Options.CustomUnityVersion = CLIOptions.o_unityVersion.Value;
assetsManager.Options.BundleOptions.CustomBlockInfoCompression = CLIOptions.o_bundleBlockInfoCompression.Value;
assetsManager.Options.BundleOptions.CustomBlockCompression = CLIOptions.o_bundleBlockCompression.Value;
assetsManager.Options.BundleOptions.CustomCachePath = CLIOptions.o_cachePath.Value;
assetsManager.Options.BundleOptions.DecompressToDisk = CLIOptions.f_decompressToDisk.Value;
assetsManager.OptionLoaders.Clear();
assetsManager.Options.ParseByTypeTree = !CLIOptions.f_avoidLoadingViaTypetree.Value;
assetsManager.Options.GameSpecific.CustomUnityVersion = CLIOptions.o_unityVersion.Value;
assetsManager.Options.GameSpecific.Bundles.CustomBlockInfoCompression = CLIOptions.o_bundleBlockInfoCompression.Value;
assetsManager.Options.GameSpecific.Bundles.CustomBlockCompression = CLIOptions.o_bundleBlockCompression.Value;
assetsManager.Options.CustomCachePath = CLIOptions.o_cachePath.Value;
assetsManager.Options.DecompressToDisk = CLIOptions.f_decompressToDisk.Value;
assetsManager.ClearOptionLoaders();
}
private static void ShowCurProgressValue(int value)