summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'data.cpp')
-rw-r--r--data.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/data.cpp b/data.cpp
index afa676d1e..7b85d2ca8 100644
--- a/data.cpp
+++ b/data.cpp
@@ -996,6 +996,14 @@ void DataManager::SetDefaultValues()
LOGINFO("TW_EXCLUDE_ENCRYPTED_BACKUPS := true\n");
mValues.insert(make_pair("tw_include_encrypted_backup", make_pair("0", 0)));
#endif
+#ifdef TW_HAS_MTP
+ mConstValues.insert(make_pair("tw_has_mtp", "1"));
+ mValues.insert(make_pair("tw_mtp_enabled", make_pair("1", 1)));
+#else
+ LOGINFO("TW_EXCLUDE_MTP := true\n");
+ mConstValues.insert(make_pair("tw_has_mtp", "0"));
+ mConstValues.insert(make_pair("tw_mtp_enabled", "0"));
+#endif
}
// Magic Values