ME3Explorer.Texplorer2.FirstTimeSetup C# (CSharp) Method

FirstTimeSetup() private method

private FirstTimeSetup ( ) : bool
return bool
        private bool FirstTimeSetup()
        {
            DebugOutput.PrintLn("Beginning First Time Setup...");
            List<string> dlcfiles = new List<string>();


            // KFreon: Removed for rev 745 fix #261
            // KFreon: Added game gate here to stop it trying to do stuff for other games
            if (WhichGame == 3)
            {
                /*DebugOutput.PrintLn("Starting DLC Extraction...");
                StatusUpdater.UpdateText("Extracting all DLC. This will take time...");

                DLCEditor2.DLCEditor2 dlcedit2 = new DLCEditor2.DLCEditor2();
                dlcedit2.ExtractAllDLC();*/

                // KFreon: Enumerate DLC files here
                try
                {
                    dlcfiles = new List<string>(Directory.EnumerateFiles(DLCPath).Where(file => file.ToLower().EndsWith(".pcc") || file.ToLower().EndsWith(".tfc")));
                }
                catch
                {
                    // Kfreon: Ignore.
                }
            }

            DebugOutput.PrintLn(string.Format("Starting FTS Window with parameters: Game: {0}  DLCPath: {1}  Cooked: {2}", WhichGame, DLCPath, pathCooked));

            using (TexplorerFirstTimeSetup fts = new TexplorerFirstTimeSetup(WhichGame, DLCPath, pathCooked))
            {
                fts.ShowDialog();
                if (fts.FilesToAddToTree == null)
                {
                    StatusUpdater.UpdateText("First Time Setup Cancelled!");
                    DebugOutput.PrintLn("First time setup cancelled.");
                    return false;
                }
                else
                {
                    Tree.Clear(true);
                    Tree.AddPCCs(fts.FilesToAddToTree);
                    if (dlcfiles.Count != 0)
                    Tree.AddPCCs(dlcfiles);
                }
            }

            BeginTreeScan();


            OutputBoxPrintLn("Performing first time setup. Don't worry, this only has to be done once.");
            return true;
        }
Texplorer2