aboutsummaryrefslogtreecommitdiff
path: root/src/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility.h')
-rw-r--r--src/utility.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/utility.h b/src/utility.h
index deaa78d90..9e47a5dac 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -1201,6 +1201,15 @@ public:
return value;
}
+ u64 getU64(std::string name)
+ {
+ u64 value = 0;
+ std::string s = get(name);
+ std::istringstream ss(s);
+ ss>>value;
+ return value;
+ }
+
void setS32(std::string name, s32 value)
{
set(name, itos(value));
@@ -1218,6 +1227,13 @@ public:
set(name, os.str());
}
+ void setU64(std::string name, u64 value)
+ {
+ std::ostringstream os;
+ os<<value;
+ set(name, os.str());
+ }
+
void clear()
{
m_settings.clear();