Add exception description on PDT parsing error.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Cryville.Crtr {
|
||||
public void LoadPdt(DirectoryInfo dir) {
|
||||
using (StreamReader pdtreader = new StreamReader(dir.FullName + "/" + data + ".pdt", Encoding.UTF8)) {
|
||||
var src = pdtreader.ReadToEnd();
|
||||
Root = new SkinInterpreter(src, null).Interpret();
|
||||
Root = (PdtSkin)new SkinInterpreter(src, null).Interpret();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user