last_visited = 0;
}
-ViewBTree* Open (Canvas::Group *parent, const std::string &filename)
+ViewBTree* ViewBTree::Open (Canvas::Group *parent, const std::string &filename)
{
ViewBTree *tree = new ViewBTree (parent, filename);
return NULL;
}
+ /* El magic no coincide!! */
+ if (strcmp (tree->header.magic, "DILUMA")) {
+ delete tree;
+ return NULL;
+ }
return tree;
}