mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
Input: move some pad handler logic to the parent class
This commit is contained in:
parent
8f47f9517a
commit
4594148409
19 changed files with 1574 additions and 1602 deletions
|
@ -298,6 +298,7 @@ namespace cfg
|
|||
// Simple string entry with mutex
|
||||
class string final : public _base
|
||||
{
|
||||
std::string m_name;
|
||||
std::string m_value;
|
||||
|
||||
public:
|
||||
|
@ -305,6 +306,7 @@ namespace cfg
|
|||
|
||||
string(node* owner, const std::string& name, const std::string& def = {})
|
||||
: _base(type::string, owner, name)
|
||||
, m_name(name)
|
||||
, m_value(def)
|
||||
, def(def)
|
||||
{
|
||||
|
@ -320,6 +322,11 @@ namespace cfg
|
|||
return m_value;
|
||||
}
|
||||
|
||||
std::string get_name() const
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
|
||||
std::size_t size() const
|
||||
{
|
||||
return m_value.size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue