From 83f0cf1a62b4a4a6440c80dda16c670bba1512c7 Mon Sep 17 00:00:00 2001 From: Razmoth <32140579+Razmoth@users.noreply.github.com> Date: Sun, 3 Sep 2023 14:13:48 +0400 Subject: [PATCH] - [Core] Bug fixes --- AssetStudio/BundleFile.cs | 2 +- AssetStudio/Logger.cs | 2 +- AssetStudioCLI/Components/CommandLine.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AssetStudio/BundleFile.cs b/AssetStudio/BundleFile.cs index cca62d0..7e90e80 100644 --- a/AssetStudio/BundleFile.cs +++ b/AssetStudio/BundleFile.cs @@ -381,7 +381,7 @@ private void ReadUnityCN(FileReader reader) HasBlockInfoNeedPaddingAtStart = true; } - Logger.Verbose($"Mask set to 0x{mask:X8}"); + Logger.Verbose($"Mask set to {mask}"); if ((m_Header.flags & mask) != 0) { diff --git a/AssetStudio/Logger.cs b/AssetStudio/Logger.cs index c4d132a..eeb1d52 100644 --- a/AssetStudio/Logger.cs +++ b/AssetStudio/Logger.cs @@ -8,7 +8,7 @@ namespace AssetStudio { public static class Logger { - private static bool _fileLogging = true; + private static bool _fileLogging; public static ILogger Default = new DummyLogger(); public static ILogger File; diff --git a/AssetStudioCLI/Components/CommandLine.cs b/AssetStudioCLI/Components/CommandLine.cs index f47a584..acee451 100644 --- a/AssetStudioCLI/Components/CommandLine.cs +++ b/AssetStudioCLI/Components/CommandLine.cs @@ -90,7 +90,7 @@ public class OptionsBinder : BinderBase public OptionsBinder() { Silent = new Option("--silent", "Hide log messages."); - Verbose = new Option("--verbose", "Hide log messages."); + Verbose = new Option("--verbose", "Enable verbose logging."); TypeFilter = new Option("--types", "Specify unity class type(s)") { AllowMultipleArgumentsPerToken = true, ArgumentHelpName = "Texture2D|Sprite|etc.." }; NameFilter = new Option("--names", result => result.Tokens.Select(x => new Regex(x.Value, RegexOptions.IgnoreCase)).ToArray(), false, "Specify name regex filter(s).") { AllowMultipleArgumentsPerToken = true }; ContainerFilter = new Option("--containers", result => result.Tokens.Select(x => new Regex(x.Value, RegexOptions.IgnoreCase)).ToArray(), false, "Specify container regex filter(s).") { AllowMultipleArgumentsPerToken = true };