Settings: Expose Save() method to interface

This commit is contained in:
Connor McLaughlin 2021-01-30 15:30:33 +10:00
parent 9d08f2e277
commit 98b4101cd7
4 changed files with 8 additions and 1 deletions

View File

@ -83,6 +83,11 @@ AndroidSettingsInterface::~AndroidSettingsInterface()
env->DeleteGlobalRef(m_helper_class);
}
bool AndroidSettingsInterface::Save()
{
return true;
}
void AndroidSettingsInterface::Clear()
{
Log_ErrorPrint("Not implemented");

View File

@ -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;

View File

@ -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;

View File

@ -13,7 +13,7 @@ public:
INISettingsInterface(std::string filename);
~INISettingsInterface() override;
bool Save();
bool Save() override;
void Clear() override;