mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Fix building with precompiled headers
add the unimplemented modules to the emucore project fix a bug in the rXml wrapper that didn't consider the possiblity of functions returning null pointers
This commit is contained in:
parent
c37905e465
commit
314307b840
5 changed files with 209 additions and 22 deletions
|
@ -44,13 +44,27 @@ rXmlNode::~rXmlNode()
|
|||
std::shared_ptr<rXmlNode> rXmlNode::GetChildren()
|
||||
{
|
||||
wxXmlNode* result = reinterpret_cast<wxXmlNode*>(handle)->GetChildren();
|
||||
return std::make_shared<rXmlNode>(reinterpret_cast<void*>(result));
|
||||
if (result)
|
||||
{
|
||||
return std::make_shared<rXmlNode>(reinterpret_cast<void*>(result));
|
||||
}
|
||||
else
|
||||
{
|
||||
return std::shared_ptr<rXmlNode>(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
std::shared_ptr<rXmlNode> rXmlNode::GetNext()
|
||||
{
|
||||
wxXmlNode* result = reinterpret_cast<wxXmlNode*>(handle)->GetNext();
|
||||
return std::make_shared<rXmlNode>(reinterpret_cast<void*>(result));
|
||||
if (result)
|
||||
{
|
||||
return std::make_shared<rXmlNode>(reinterpret_cast<void*>(result));
|
||||
}
|
||||
else
|
||||
{
|
||||
return std::shared_ptr<rXmlNode>(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
std::string rXmlNode::GetName()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue