예제 #1
0
        public void InitializeDefaultValues()
        {
            if (BuildSettings == null)
            {
                BuildSettings = new ProjectBuildSettings();
            }

            BuildSettings.InitializeDefaults();

            if (EditorSettings == null)
            {
                EditorSettings = new EditorSettings();
            }

            EditorSettings.InitializeDefaults();

            if (LddSettings == null)
            {
                LddSettings = new LddSettings();
            }

            LddSettings.InitializeDefaults();

            if (DisplaySettings == null)
            {
                DisplaySettings = new DisplaySettings();
            }

            DisplaySettings.InitializeDefaults();
        }
예제 #2
0
        public void InitializeDefaultValues()
        {
            if (string.IsNullOrEmpty(LddApplicationDataPath) ||
                string.IsNullOrEmpty(LddProgramFilesPath))
            {
                var installedEnv = LDD.LDDEnvironment.InstalledEnvironment;
                LddApplicationDataPath = installedEnv?.ApplicationDataPath ?? string.Empty;
                LddProgramFilesPath    = installedEnv?.ProgramFilesPath ?? string.Empty;
            }

            if (BuildSettings == null)
            {
                BuildSettings = new ProjectBuildSettings();
            }
            BuildSettings.InitializeDefaults();
        }