Pull down IResourceDestination.

This commit is contained in:
2024-02-16 18:25:03 +08:00
parent 662cbf0827
commit e9e6d7002a
12 changed files with 258 additions and 185 deletions

View File

@@ -1,3 +1,4 @@
using Cryville.Crtr.Browsing.Actions;
using Cryville.Crtr.Skin;
using Newtonsoft.Json;
using System.IO;
@@ -6,7 +7,7 @@ namespace Cryville.Crtr.Browsing.Legacy {
internal class LegacySkinResourceManager : LegacyResourceManager<LegacySkinDetail> {
protected override string Extension { get { return ".umgs"; } }
public LegacySkinResourceManager(string rootPath) : base(rootPath) { }
public LegacySkinResourceManager(LegacyResourceStore store) : base(store) { }
protected override string GetSubRootPath(string rootPath) {
return Path.Combine(rootPath, "skins");
@@ -23,5 +24,9 @@ namespace Cryville.Crtr.Browsing.Legacy {
else
return new LegacySkinDetail { OverrideName = dir.Name };
}
public override IResourceAction GetImportAction() {
return _store.ImportAction;
}
}
}