Ejemplo n.º 1
0
        private void OpenTocFile(string tocbin, string gamePath = "")
        {
            if (string.IsNullOrEmpty(gamePath))
            {
                gamePath = Path.GetDirectoryName(tocbin);
            }

            _tocHnd = new TocHandler(tocbin, gamePath);

            OpenToc(_tocHnd);
        }
Ejemplo n.º 2
0
        private void OpenToc(TocHandler tocHnd)
        {
            treeViewTOC.BeginUpdate();
            treeViewTOC.Nodes.Clear();

            foreach (var chunk in tocHnd.ChunkList)
            {
                BlockToTreeView(chunk);
            }

            treeViewTOC.EndUpdate();
        }