ARCed.Helpers.ResourceHelper.RefreshRTP C# (CSharp) Метод

RefreshRTP() публичный статический Метод

Refreshes the collection of RTP resources
public static RefreshRTP ( ) : void
Результат void
        public static void RefreshRTP()
        {
            _resources.RemoveAll(r => r.Location == Location.RTP);
            var graphics = Path.Combine(Constants.RTPPath, "Graphics");
            var audio = Path.Combine(Constants.RTPPath, "Audio");
            foreach (var filename in DirectorySearch(graphics, Constants.IMAGEFILTERS.Split('|')))
                _resources.Add(new GameResource(filename, Location.RTP, ResourceType.Graphics));
            foreach (var filename in DirectorySearch(audio, Constants.AUDIOFILTERS.Split('|')))
                _resources.Add(new GameResource(filename, Location.RTP, ResourceType.Audio));
        }