XML/RBF conversion

This commit is contained in:
dexy
2019-12-30 05:23:09 +11:00
Unverified
parent e31e401fa8
commit e3bbd29b33
6 changed files with 351 additions and 36 deletions
+11 -5
View File
@@ -373,11 +373,14 @@ namespace CodeWalker.Forms
data = pso.Save();
break;
case MetaFormat.RBF:
MessageBox.Show("Sorry, RBF import is not supported.", "Cannot import RBF XML");
return false;
case MetaFormat.CacheFile:
MessageBox.Show("Sorry, CacheFile import is not supported.", "Cannot import CacheFile XML");
return false;
var rbf = XmlRbf.GetRbf(doc);
if (rbf.current == null)
{
MessageBox.Show("Schema not supported.", "Cannot import RBF XML");
return false;
}
data = rbf.Save();
break;
case MetaFormat.Ynd:
var ynd = XmlYnd.GetYnd(doc);
if (ynd.NodeDictionary == null)
@@ -387,6 +390,9 @@ namespace CodeWalker.Forms
}
data = ynd.Save();
break;
case MetaFormat.CacheFile:
MessageBox.Show("Sorry, CacheFile import is not supported.", "Cannot import CacheFile XML");
return false;
}
}
#if !DEBUG