private void UnpackPackage(IProgressIndicator indicator, string filename, bool createSubfolder = false) { indicator.SetProgress("Loading Package: " + filename, 1, 2); string name = ResourceManager.Load(filename); if (name == null) { return; } string path = Directory.GetCurrentDirectory(); if (createSubfolder) { Directory.CreateDirectory(name); path = Path.Combine(path, name); } IProgressIndicator sub = indicator.CreateSubTask(); ResourceManager.Activate(name, sub, path); indicator.SetProgress("Activating Package: " + name, 2, 2); indicator.Dispose(); }
protected override void Run(string input, string output) { string name = ResourceManager.Load(input); ResourceManager.Activate(name, null, output); }