public static void Install()
        {
            CURRENTLY_INSTALLING = true;
            IS_INSTALLED         = false;

            //Define symbol
            {
                //Base
                DefineSymbol.Add(SCPE.DEFINE_SYMBOL);

                //SRP
#if PACKAGE_MANAGER
                // TEMP, currently only need a define symbol for LWRP 5.7.2+
                // Future versions will require it completely to support the upcoming PPSv3 system
                if (RenderPipelineInstallation.CurrentPipeline == RenderPipelineInstallation.Pipeline.LWRP)
                {
                    if (RenderPipelineInstallation.VersionStatus == RenderPipelineInstallation.Version.Compatible)
                    {
                        DefineSymbol.Add(RenderPipelineInstallation.SRP_DEFINE_SYMBOL);
                    }
                }
#endif
            }

            //Add Layer for project olders than 2018.1
            {
                SetupLayer();
            }

            //Unpack SCPE effects
            {
                //ConfigureShaderPaths();
            }

            //If option is chosen, unpack demo content
            {
                if (Settings.installDemoContent)
                {
                    Demo.InstallScenes();
                }
                if (Settings.installSampleContent)
                {
                    Demo.InstallSamples();
                }
            }

            Installer.Log.Write("<b>Installation complete</b>");
            CURRENTLY_INSTALLING = false;
            IS_INSTALLED         = true;
        }
Exemple #2
0
        public static void Install()
        {
            CURRENTLY_INSTALLING = true;
            IS_INSTALLED         = false;

            //Define symbol
            {
                DefineSymbol.Add();
            }

            //Add Layer for project olders than 2018.1
            {
                SetupLayer();
            }

            //Unpack SCPE effects
            {
                //ConfigureShaderPaths();
            }

            //If option is chosen, unpack demo content
            {
                if (Settings.installDemoContent)
                {
                    Demo.InstallScenes();
                }
                if (Settings.installSampleContent)
                {
                    Demo.InstallSamples();
                }
            }

            Installer.Log.Write("Installation completed");
            CURRENTLY_INSTALLING = false;
            IS_INSTALLED         = true;
        }