Beispiel #1
0
        private void WriteNewHeader(FileDescriptor descriptor)
        {
            var header = new NewHeader
            {
                ResourcesCount = descriptor.ResourcesCount.Value,
                Version        = descriptor.Version.Value,
                Unknown        = descriptor.Unknown.Value
            };

            Logger.Trace("Writing resources header...");
            Logger.Trace("Signature: {0}, Version: {1}, ResourcesCount: {2}, Unknown: {3}",
                         header.Signature, header.Version, header.ResourcesCount, header.Unknown
                         );
            header.WriteTo(_binaryWriter);
        }
Beispiel #2
0
        private void WriteNewHeader(FileDescriptor descriptor)
        {
            var header = new NewHeader
            {
                ResourcesCount = descriptor.ResourcesCount.Value,
                Version        = descriptor.Version.Value,
                Unknown        = descriptor.Unknown.Value
            };

            Logger.Trace("写入头文件...");
            Logger.Trace("已签名: {0}, 版本: {1}, 资源数目: {2}, 错误(未知: {3})",
                         header.Signature, header.Version, header.ResourcesCount, header.Unknown
                         );
            header.WriteTo(_binaryWriter);
        }