Move stable import handling into its own class

This commit is contained in:
Dean Herbert
2021-11-25 15:36:12 +09:00
parent 2bfc473689
commit 6cab7b877d
13 changed files with 122 additions and 72 deletions

View File

@ -301,11 +301,6 @@ namespace osu.Game.Skinning
remove => skinModelManager.ItemRemoved -= value;
}
public Task ImportFromStableAsync(StableStorage stableStorage)
{
return skinModelManager.ImportFromStableAsync(stableStorage);
}
public void Export(SkinInfo item)
{
skinModelManager.Export(item);

View File

@ -34,8 +34,6 @@ namespace osu.Game.Skinning
protected override string[] HashableFileTypes => new[] { ".ini", ".json" };
protected override string ImportFromStablePath => "Skins";
protected override bool ShouldDeleteArchive(string path) => Path.GetExtension(path)?.ToLowerInvariant() == @".osk";
protected override SkinInfo CreateModel(ArchiveReader archive) => new SkinInfo { Name = archive.Name ?? @"No name" };