mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 13:01:27 +12:00
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:
parent
fe1e7a1bdb
commit
85d0fff233
2 changed files with 17 additions and 68 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue