mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
Settings: Expose Save() method to interface
This commit is contained in:
parent
9d08f2e277
commit
98b4101cd7
|
@ -83,6 +83,11 @@ AndroidSettingsInterface::~AndroidSettingsInterface()
|
||||||
env->DeleteGlobalRef(m_helper_class);
|
env->DeleteGlobalRef(m_helper_class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool AndroidSettingsInterface::Save()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void AndroidSettingsInterface::Clear()
|
void AndroidSettingsInterface::Clear()
|
||||||
{
|
{
|
||||||
Log_ErrorPrint("Not implemented");
|
Log_ErrorPrint("Not implemented");
|
||||||
|
|
|
@ -8,6 +8,7 @@ public:
|
||||||
AndroidSettingsInterface(jobject java_context);
|
AndroidSettingsInterface(jobject java_context);
|
||||||
~AndroidSettingsInterface();
|
~AndroidSettingsInterface();
|
||||||
|
|
||||||
|
bool Save() override;
|
||||||
void Clear() override;
|
void Clear() override;
|
||||||
|
|
||||||
int GetIntValue(const char* section, const char* key, int default_value = 0) override;
|
int GetIntValue(const char* section, const char* key, int default_value = 0) override;
|
||||||
|
|
|
@ -11,6 +11,7 @@ class SettingsInterface
|
||||||
public:
|
public:
|
||||||
virtual ~SettingsInterface();
|
virtual ~SettingsInterface();
|
||||||
|
|
||||||
|
virtual bool Save() = 0;
|
||||||
virtual void Clear() = 0;
|
virtual void Clear() = 0;
|
||||||
|
|
||||||
virtual int GetIntValue(const char* section, const char* key, int default_value = 0) = 0;
|
virtual int GetIntValue(const char* section, const char* key, int default_value = 0) = 0;
|
||||||
|
|
|
@ -13,7 +13,7 @@ public:
|
||||||
INISettingsInterface(std::string filename);
|
INISettingsInterface(std::string filename);
|
||||||
~INISettingsInterface() override;
|
~INISettingsInterface() override;
|
||||||
|
|
||||||
bool Save();
|
bool Save() override;
|
||||||
|
|
||||||
void Clear() override;
|
void Clear() override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue