Fix rXml limitation

(trophies)
This commit is contained in:
Nekotekina 2017-09-03 22:29:20 +03:00
parent 1262263f5c
commit 2e510e5ca0
4 changed files with 39 additions and 29 deletions

View file

@ -61,10 +61,9 @@ rXmlDocument::rXmlDocument() : handle()
{
}
void rXmlDocument::Load(const std::string & path)
void rXmlDocument::Read(const std::string& data)
{
// TODO: Unsure of use of c_str.
handle.load_file(path.c_str());
handle.load_buffer(data.data(), data.size());
}
std::shared_ptr<rXmlNode> rXmlDocument::GetRoot()