summaryrefslogtreecommitdiffstats
path: root/data.hpp
diff options
context:
space:
mode:
authornkk71 <nkk71x@gmail.com>2017-12-16 15:26:42 +0100
committerDees Troy <dees_troy@teamw.in>2018-01-17 20:42:17 +0100
commit98fc399c2660727a6bde66e1a51e8460aaf3c7e7 (patch)
tree50626f61a9be342328cbdc46016427c893482cad /data.hpp
parentMerge "Relink adbd needed in android 8.1" into android-8.1 (diff)
downloadandroid_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.gz
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.bz2
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.lz
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.xz
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.zst
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.zip
Diffstat (limited to 'data.hpp')
-rw-r--r--data.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/data.hpp b/data.hpp
index 790efc993..d61fe8e7c 100644
--- a/data.hpp
+++ b/data.hpp
@@ -23,6 +23,8 @@
#include <pthread.h>
#include "infomanager.hpp"
+#define PERSIST_SETTINGS_FILE "/persist/.twrps"
+
using namespace std;
class DataManager
@@ -30,13 +32,14 @@ class DataManager
public:
static int ResetDefaults();
static int LoadValues(const string& filename);
+ static int LoadPersistValues(void);
static int Flush();
// Core get routines
static int GetValue(const string& varName, string& value);
static int GetValue(const string& varName, int& value);
static int GetValue(const string& varName, float& value);
- static unsigned long long GetValue(const string& varName, unsigned long long& value);
+ static int GetValue(const string& varName, unsigned long long& value);
// Helper functions
static string GetStrValue(const string& varName);