Exemplo n.º 1
0
        public override void OnRebuild(VoidPtr address, int length, bool force)
        {
            ItmFreqOffEntry *header = (ItmFreqOffEntry *)address;

            *header = new ItmFreqOffEntry();
            header->_offset = HasChildren ? _offset : 0;
            header->_count  = (uint)Children.Count;
        }
Exemplo n.º 2
0
        public override void OnPopulate()
        {
            for (int i = 0; i < 5; i++)
            {
                // TODO
                // This initiates all 5 tables regardless of whether they are filled in or not because
                // if they are not initialized, the size of the file will be thrown off by the
                // size of the missing entries.

                ItmFreqOffEntry *table       = (ItmFreqOffEntry *)((int)TList + (int)(i * 8));
                DataSource       TableSource = new DataSource(table, 0x08);
                new TableNode().Initialize(this, TableSource);
            }
        }
Exemplo n.º 3
0
        public override void OnRebuild(VoidPtr address, int length, bool force)
        {
            ItmFreqOffEntry *Header = (ItmFreqOffEntry *)address;

            *Header = new ItmFreqOffEntry();
            Header->_offset = _entryOffset;
            Header->_count  = _count;
            //Root._pointerList.Add(((int)address - (int)BaseAddress));

            for (int i = 0; i < Children.Count; i++)
            {
                Children[i].Rebuild(BaseAddress + Header->_offset + (i * 0x14), 0x14, force);
            }
        }