Axiom.RenderSystems.DirectX9.D3DRenderSystem.ValidateConfigOptions C# (CSharp) Метод

ValidateConfigOptions() приватный метод

private ValidateConfigOptions ( ) : string
Результат string
        public override string ValidateConfigOptions()
        {
            var mOptions = configOptions;
            ConfigOption it;

            // check if video mode is selected
            if (!mOptions.TryGetValue("Video Mode", out it))
                return "A video mode must be selected.";

            var foundDriver = false;
            if (mOptions.TryGetValue( "Rendering Device", out it ))
            {
                var name = it.Value;
                foundDriver = Direct3DDrivers.Any( d => d.DriverDescription == name );
            }

            if (!foundDriver)
            {
                // Just pick the first driver
                SetConfigOption( "Rendering Device", _driverList.First().DriverDescription );
                return "Your DirectX driver name has changed since the last time you ran OGRE; " +
                       "the 'Rendering Device' has been changed.";
            }

            it = mOptions["VSync"];
            vSync = it.Value == "Yes";

            return "";
        }
D3DRenderSystem