コード例 #1
0
        private void OpenTocFile(string tocbin, string gamePath = "")
        {
            if (string.IsNullOrEmpty(gamePath))
            {
                gamePath = Path.GetDirectoryName(tocbin);
            }

            _tocHnd = new TocHandler(tocbin, gamePath);

            OpenToc(_tocHnd);
        }
コード例 #2
0
        private void OpenToc(TocHandler tocHnd)
        {
            treeViewTOC.BeginUpdate();
            treeViewTOC.Nodes.Clear();

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

            treeViewTOC.EndUpdate();
        }