Added net6 back.

This commit is contained in:
Razmoth
2023-01-07 20:58:12 +04:00
parent 94d73398ca
commit 37f816f800
19 changed files with 219 additions and 225 deletions

View File

@@ -488,8 +488,6 @@ namespace AssetStudio
m_ConstCurveCount = reader.ReadUInt32();
}
}
public bool IsSet => m_CurveCount > 0;
}
public class StreamedClip

View File

@@ -12,8 +12,10 @@ namespace AssetStudio
Bytes,
JSON
}
public sealed partial class MiHoYoBinData : Object
public sealed class MiHoYoBinData : Object
{
private static Regex ASCII = new Regex("[^\u0020-\u007E]", RegexOptions.Compiled);
public static bool Exportable;
public static bool Encrypted;
public static byte Key;
@@ -29,7 +31,7 @@ namespace AssetStudio
public string AsString => Type switch
{
MiHoYoBinDataType.JSON => JToken.Parse(DataStr).ToString(Formatting.Indented),
MiHoYoBinDataType.Bytes => Chars().Replace(DataStr, string.Empty),
MiHoYoBinDataType.Bytes => ASCII.Replace(DataStr, string.Empty),
_ => "",
};
public new object Dump() => Type switch
@@ -74,8 +76,5 @@ namespace AssetStudio
else return RawData;
}
}
[GeneratedRegex("[^\\u0020-\\u007E]")]
private static partial Regex Chars();
}
}