Exemple #1
0
        public static LocalFileProvider AddLocalProvider(params string[] directories)
        {
            var provider = new LocalFileProvider();

            foreach (var dir in directories)
            {
                provider.AddFileDirectory(dir);
            }
            FileProviders.Add(provider);
            return(provider);
        }
Exemple #2
0
        public static void Init()
        {
            if (_initialized)
            {
                return;
            }
            _initialized = true;

            FileProviders.Add(new WorkshopFileProvider());
            AddLocalProvider(Structure.RuntimePath);
            Build();
        }