GameSettings: Add string key accessors

This commit is contained in:
Connor McLaughlin
2021-01-03 17:26:51 +10:00
parent 2501547acb
commit 6ff73f35bd
2 changed files with 399 additions and 0 deletions

View File

@ -87,6 +87,10 @@ struct Entry
bool SaveToStream(ByteStream* stream) const;
void ApplySettings(bool display_osd_messages) const;
// Key-based interface, used by Android.
std::optional<std::string> GetValueForKey(const std::string_view& key) const;
void SetValueForKey(const std::string_view& key, const std::optional<std::string>& value);
};
#ifndef LIBRETRO