mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
added psf::object::get
This commit is contained in:
parent
220aab1fd0
commit
290bdc4566
2 changed files with 15 additions and 0 deletions
|
|
@ -365,4 +365,16 @@ namespace psf
|
|||
{
|
||||
return m_entries.at(key);
|
||||
}
|
||||
|
||||
const entry* object::get(const std::string &key) const
|
||||
{
|
||||
auto found = m_entries.find(key);
|
||||
|
||||
if (found == m_entries.end())
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return &found->second;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue