ME3Explorer.KFreonTPFTools3.Initialise C# (CSharp) Method

Initialise() private method

Sets up some basic things.
private Initialise ( bool changeTree ) : void
changeTree bool
return void
        private void Initialise(bool changeTree)
        {
            // KFreon: Start debugger in separate thread
            DebugOutput.StartDebugger("TPF/DDS Tools 3.0");

            // KFreon: Get game version if necessary
            if (!changeTree)
                WhichGame = Properties.Settings.Default.TPFToolsGameVersion;
            else
            {
                DebugOutput.PrintLn();
                DebugOutput.PrintLn("Changing Trees...");
            }

            MEExDirecs.WhichGame = WhichGame;

            // KFreon: Change window and button text
            this.Invoke(new Action(() =>
            {
                ChangeButton.Text = "Modding ME" + WhichGame;
                this.Text = "TPF/DDS Tools 3.0:  " + "ME" + WhichGame;
            }));


            // KFreon: Change paths and clear tree if necessary
            if (changeTree)
            {
                if (Tree != null)
                    Tree.Clear(true);
            }
            MEExDirecs.SetupPathing(false);


            // KFreon: Actually set visual cues
            DoGameIndicatorChecks();

            // KFreon: Cleanup temporary files unless changing tree
            if (!changeTree)
                Cleanup();
        }
KFreonTPFTools3