rXml: fix broken things (#1669)

Not sure if it works completely now but at least it doesn't crash in
Metal Slug 3 now.
This commit is contained in:
Danila Malyutin 2016-04-17 00:21:22 +03:00 committed by Ivan
parent fe1e7a1bdb
commit 85d0fff233
2 changed files with 17 additions and 68 deletions

View file

@ -9,19 +9,14 @@
struct rXmlNode
{
rXmlNode();
rXmlNode(pugi::xml_node *);
rXmlNode(const rXmlNode& other);
rXmlNode &operator=(const rXmlNode& other);
~rXmlNode();
rXmlNode(const pugi::xml_node &);
std::shared_ptr<rXmlNode> GetChildren();
std::shared_ptr<rXmlNode> GetNext();
std::string GetName();
std::string GetAttribute( const std::string &name);
std::string GetNodeContent();
void *AsVoidPtr();
pugi::xml_node *handle;
bool ownPtr;
pugi::xml_node handle;
};
struct rXmlDocument
@ -29,10 +24,8 @@ struct rXmlDocument
rXmlDocument();
rXmlDocument(const rXmlDocument& other) = delete;
rXmlDocument &operator=(const rXmlDocument& other) = delete;
~rXmlDocument();
void Load(const std::string & path);
std::shared_ptr<rXmlNode> GetRoot();
void *AsVoidPtr();
pugi::xml_document *handle;
};
pugi::xml_document handle;
};