mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
85d0fff233
Not sure if it works completely now but at least it doesn't crash in Metal Slug 3 now.
32 lines
697 B
C++
32 lines
697 B
C++
#pragma once
|
|
|
|
#ifndef PUGIXML_HEADER_ONLY
|
|
#define PUGIXML_HEADER_ONLY 1
|
|
#endif // !PUGIXML_HEADER_ONLY
|
|
#include "pugixml.hpp"
|
|
#undef PUGIXML_HEADER_ONLY
|
|
|
|
struct rXmlNode
|
|
{
|
|
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();
|
|
|
|
pugi::xml_node handle;
|
|
};
|
|
|
|
struct rXmlDocument
|
|
{
|
|
rXmlDocument();
|
|
rXmlDocument(const rXmlDocument& other) = delete;
|
|
rXmlDocument &operator=(const rXmlDocument& other) = delete;
|
|
void Load(const std::string & path);
|
|
std::shared_ptr<rXmlNode> GetRoot();
|
|
|
|
pugi::xml_document handle;
|
|
};
|