ARCed.Helpers.ResourceHelper.RefreshLocal C# (CSharp) Method

RefreshLocal() public static method

Refreshes the collection of local resources
public static RefreshLocal ( ) : void
return void
        public static void RefreshLocal()
        {
            _resources.RemoveAll(r => r.Location == Location.Local);
            foreach (var filename in DirectorySearch("Graphics", Constants.IMAGEFILTERS.Split('|')))
                _resources.Add(new GameResource(filename, Location.Local, ResourceType.Graphics));
            foreach (var filename in DirectorySearch("Audio", Constants.AUDIOFILTERS.Split('|')))
                _resources.Add(new GameResource(filename, Location.Local, ResourceType.Audio));
        }