Beispiel #1
0
        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}");
        }
Beispiel #2
0
 public FormatDescriptor GetFormatDescriptor()
 {
     return(ScriptUtilities.GetFormatDescriptor(Format));
 }