Esempio n. 1
0
        private void TV1_DoubleClick(object sender, EventArgs e)
        {
            TreeNode t = TV1.SelectedNode;

            if (t == null || t.Parent == null)
            {
                return;
            }
            Println("Loading " + t.Text + " ...");

            string DLCName = t.Parent.Text;

            try
            {
                if (DLCName == mainPCCFolder)
                {
                    currentPCC = ME3Directory.cookedPath + t.Text;
                    pcc        = new PCCObject(currentPCC);
                }
                else
                {
                    currentPCC = t.Name;
                    string tempPCCPath = Path.GetFileName(currentPCC);
                    currentDLC = new AmaroK86.MassEffect3.DLCBase(ME3Directory.DLCFilePath(DLCName));
                    currentDLC.extractFile(currentPCC, tempPCCPath);
                    pcc            = new PCCObject(tempPCCPath);
                    pcc.bDLCStored = true;
                }

                GeneratePccTree();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error:\n" + ex.Message);
            }
        }
Esempio n. 2
0
        private void TV1_DoubleClick(object sender, EventArgs e)
        {
            TreeNode t = TV1.SelectedNode;
            if (t == null || t.Parent == null)
                return;
            Println("Loading " + t.Text + " ...");

            string DLCName = t.Parent.Text;
            if (DLCName == mainPCCFolder)
            {
                currentPCC = ME3Directory.cookedPath + t.Text;
                pcc = new PCCObject(currentPCC);
            }
            else
            {
                currentPCC = t.Name;
                string tempPCCPath = Path.GetFileName(currentPCC);
                currentDLC = new AmaroK86.MassEffect3.DLCBase(ME3Directory.DLCFilePath(DLCName));
                currentDLC.extractFile(currentPCC, tempPCCPath);
                pcc = new PCCObject(tempPCCPath);
                pcc.bDLCStored = true;
            }

            GeneratePccTree();
        }