public static LocalFileProvider AddLocalProvider(params string[] directories) { var provider = new LocalFileProvider(); foreach (var dir in directories) { provider.AddFileDirectory(dir); } FileProviders.Add(provider); return(provider); }
public static void Init() { if (_initialized) { return; } _initialized = true; FileProviders.Add(new WorkshopFileProvider()); AddLocalProvider(Structure.RuntimePath); Build(); }