Add chart file resource.

This commit is contained in:
2022-11-17 17:21:09 +08:00
parent fd9e2ce409
commit 34b17f3111
3 changed files with 8 additions and 5 deletions

View File

@@ -133,8 +133,8 @@ namespace Cryville.Crtr.Browsing {
if (!res.Valid) {
Logger.Log("main", 3, "Resource", "Attempt to import invalid resource {0}", res);
}
else if (res is ChartResource) {
var tres = (ChartResource)res;
else if (res is RawChartResource) {
var tres = (RawChartResource)res;
var dir = new DirectoryInfo(_rootPath + "/charts/" + res.Name);
if (!dir.Exists) dir.Create();
using (var writer = new StreamWriter(dir.FullName + "/.umgc")) {