Exemple #1
0
                public d_msgFile(BinaryReader _bfile)
                    : this()
                {
                    if (_bfile == null)
                        return;

                    _header = new d_msgHeaderFormat(_bfile);

                    if (_bfile.BaseStream.Length != _header.FileSize || !_header.Marker.StartsWith("d_msg"))
                    {
                        _header = null;
                        return;
                    }

                    _entry_list = new d_msgEntryFormat[_header.EntryCount];

                    for (int counter = 0; counter < _header.EntryCount; counter++)
                        _entry_list[counter] = new d_msgEntryFormat(_bfile, _header);

                    _bfile.Close();
                    _bfile = null;
                }
Exemple #2
0
            public d_msgFile(BinaryReader _bfile, FFXIEncoding FFXIConvert)
                : this()
            {
                if (_bfile == null)
                    return;

                _header = new d_msgHeaderFormat(_bfile);

                if (_bfile.BaseStream.Length != _header.FileSize)
                {
                    _header = null;
                    return;
                }

                _entry_list = new d_msgEntryFormat[_header.EntryCount];

                for (int counter = 0; counter < _header.EntryCount; counter++)
                    _entry_list[counter] = new d_msgEntryFormat(_bfile, _header, FFXIConvert);

                _bfile.Close();
                _bfile = null;
            }