From e5b4c8e86709129d8d42aca719e5c9bedb1b3875 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Fri, 29 May 2015 11:18:39 +0300 Subject: Added Settings::Delete() to clear settings. --- platform/settings.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'platform/settings.hpp') diff --git a/platform/settings.hpp b/platform/settings.hpp index 122075d8ba..c5cca5e6ae 100644 --- a/platform/settings.hpp +++ b/platform/settings.hpp @@ -21,6 +21,7 @@ namespace Settings bool GetValue(string const & key, string & outValue); void SetValue(string const & key, string const & value); + void DeleteKeyAndValue(string const & key); }; /// Retrieve setting @@ -37,6 +38,11 @@ namespace Settings StringStorage::Instance().SetValue(key, ToString(value)); } + void Delete(string const & key) + { + StringStorage::Instance().DeleteKeyAndValue(key); + } + enum Units { Metric = 0, Yard, Foot }; /// Use this function for running some stuff once according to date. -- cgit v1.2.3