mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +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);
|
||||
}
|
||||
|
||||
bool AndroidSettingsInterface::Save()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void AndroidSettingsInterface::Clear()
|
||||
{
|
||||
Log_ErrorPrint("Not implemented");
|
||||
|
|
|
@ -8,6 +8,7 @@ public:
|
|||
AndroidSettingsInterface(jobject java_context);
|
||||
~AndroidSettingsInterface();
|
||||
|
||||
bool Save() override;
|
||||
void Clear() override;
|
||||
|
||||
int GetIntValue(const char* section, const char* key, int default_value = 0) override;
|
||||
|
|
|
@ -11,6 +11,7 @@ class SettingsInterface
|
|||
public:
|
||||
virtual ~SettingsInterface();
|
||||
|
||||
virtual bool Save() = 0;
|
||||
virtual void Clear() = 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() override;
|
||||
|
||||
bool Save();
|
||||
bool Save() override;
|
||||
|
||||
void Clear() override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue