private static BinaryFormat DetermineFormat(uint scriptFormat) { for (BinaryFormat i = BinaryFormat.DT; i < BinaryFormat.X; i++) { foreach (var format in ScriptUtilities.GetScriptFormats(i)) { if (format == scriptFormat) { return(i); } } } throw new Exception($"Unknown script format: 0x{scriptFormat:X8}"); }
public FormatDescriptor GetFormatDescriptor() { return(ScriptUtilities.GetFormatDescriptor(Format)); }