public override void OnPopulate() { ISOPartLists p = Get <ISOPartLists>(0x40000); int pCount = p._partitionCount; int total = p._channelCount + pCount; for (int i = 0; i < total; ++i) { long offset = i < pCount ? (p.PartitionOffset + i * 8L) : (p.ChannelOffset + (i - pCount) * 8L); PartitionTableEntry e = Get <PartitionTableEntry>(offset); new ISOPartitionNode(e, i >= pCount).Create(this, e._offset * OffMult, 0x8000, false); } }
public ISOPartitionNode(PartitionTableEntry entry, bool VC) { if (VC) { _vcID = entry.GameID; _type = PartitionTableEntry.Type.VirtualConsole; } else { _vcID = "N/A"; _type = entry.PartitionType; } }
} /* ViewSipperHeader */ private void LoadSipperFileListView() { SipperFileListView.Items.Clear(); { ContextMenuStrip cms = new ContextMenuStrip(); cms.Items.Add("View File", null, ViewSipperFile); cms.Items.Add("View Header Info", null, ViewSipperHeader); SipperFileListView.ContextMenuStrip = cms; } disk = null; try { disk = new SipperDisk(this.readDirFromLogFiles); } catch { if (disk != null) { disk.Dispose(); disk = null; } } if (disk == null) { return; } SipperFileListView.Enabled = false; SipperFileListViewDisabled = true; partition = disk.GetSipperPartitionTableEntry(); SipperFileControlBlockList files = disk.SipperFiles(); foreach (SipperFileControlBlock fcb in files) { FcbListViewItem flvi = new FcbListViewItem(fcb); SipperFileListView.Items.Add(flvi); } SipperFileListViewDisabled = false; SipperFileListView.Enabled = true; UpdateSelectedBytes(); } /* LoadSipperFileListView */