XML to PSO conversion (experimental)

This commit is contained in:
dexy
2018-12-20 04:28:43 +11:00
Unverified
parent 34a29a5faa
commit 7c31cfb6ee
11 changed files with 2097 additions and 149 deletions
+8 -2
View File
@@ -350,8 +350,14 @@ namespace CodeWalker.Forms
data = ResourceBuilder.Build(meta, 2); //meta is RSC "Version":2 (it's actually a type identifier, not a version!)
break;
case MetaFormat.PSO:
MessageBox.Show("Sorry, PSO import is not supported yet.", "Cannot import PSO XML");
return false;
var pso = XmlPso.GetPso(doc);
if ((pso.DataSection == null) || (pso.DataMapSection == null) || (pso.SchemaSection == null))
{
MessageBox.Show("Schema not supported.", "Cannot import PSO XML");
return false;
}
data = pso.Save();
break;
case MetaFormat.RBF:
MessageBox.Show("Sorry, RBF import is not supported.", "Cannot import RBF XML");
return false;