Pull up data field in metadata.

This commit is contained in:
2022-11-17 23:31:44 +08:00
parent 5cdf10874e
commit 678e145271
4 changed files with 11 additions and 10 deletions

View File

@@ -19,9 +19,6 @@ namespace Cryville.Crtr {
[JsonRequired]
public string ruleset;
[JsonRequired]
public string pdt;
public List<string> frames = new List<string>();
@@ -29,7 +26,7 @@ namespace Cryville.Crtr {
public PdtSkin Root { get; private set; }
public void LoadPdt(DirectoryInfo dir) {
using (StreamReader pdtreader = new StreamReader(dir.FullName + "/" + pdt + ".pdt", Encoding.UTF8)) {
using (StreamReader pdtreader = new StreamReader(dir.FullName + "/" + data + ".pdt", Encoding.UTF8)) {
var src = pdtreader.ReadToEnd();
Root = new SkinInterpreter(src, null).Interpret();
}