Axiom.Demos.Browser.WinForm.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 ) )
			{
				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( row.src, row.type, row.group, false, true );
				}
			}
		}