Axiom.Demos.Browser.CommandLine.Program._setupResources C# (CSharp) Метод

_setupResources() приватный Метод

Loads default resource configuration if one exists.
private _setupResources ( ) : void
Результат void
        private void _setupResources()
        {
            string resourceConfigPath = Path.GetFullPath( CONFIG_FILE );

            if ( File.Exists( resourceConfigPath ) )
            {
                EngineConfig config = new EngineConfig();

                // load the config file
                // relative from the location of debug and releases executables
                config.ReadXml( CONFIG_FILE );

                // interrogate the available resource paths
                foreach ( EngineConfig.FilePathRow row in config.FilePath )
                {
                    ResourceGroupManager.Instance.AddResourceLocation( Path.GetFullPath( row.src ), row.type, row.group );
                }
            }
        }