static bool ExportRawFile(NamedObject obj, string exportPath) { var exportFullName = Path.Combine(exportPath, obj.m_Name + ".dat"); Directory.CreateDirectory(Path.GetDirectoryName(exportFullName)); File.WriteAllBytes(exportFullName, obj.GetRawData()); return(true); }