mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-12 17:19:37 +01:00
Cfg: add missing get() methods
This commit is contained in:
1 parent
8f91917e8c
commit
88dc6b7700
1 file changed
+15
@@ -132,6 +132,11 @@ namespace cfg
|
||||
return m_value;
|
||||
}
|
||||
|
||||
bool get() const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
void from_default() override;
|
||||
|
||||
std::string to_string() const override
|
||||
@@ -178,6 +183,11 @@ namespace cfg
|
||||
return m_value;
|
||||
}
|
||||
|
||||
T get() const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
void from_default() override
|
||||
{
|
||||
m_value = def;
|
||||
@@ -236,6 +246,11 @@ namespace cfg
|
||||
return m_value;
|
||||
}
|
||||
|
||||
int_type get() const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
void from_default() override
|
||||
{
|
||||
m_value = def;
|
||||
|
||||
Reference in new issue
Block a user