summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-07 22:07:55 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-07 22:10:00 +0200
commit5bf439221d081eb1853c8958405b76eca190129e (patch)
tree7bf908afc56cb72163e771efd06ca7278b1604de /data.cpp
parentHax to make it boot (diff)
downloadandroid_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.gz
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.bz2
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.lz
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.xz
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.zst
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.zip
Diffstat (limited to 'data.cpp')
-rw-r--r--data.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/data.cpp b/data.cpp
index 1b5c1ff99..92e2e413f 100644
--- a/data.cpp
+++ b/data.cpp
@@ -150,7 +150,7 @@ int DataManager::SaveValues()
if (mBackingFile.empty()) return -1;
string mount_path = GetSettingsStoragePath();
- TWPartitionManager::Mount_By_Path(mount_path.c_str(), 1);
+ PartitionManager.Mount_By_Path(mount_path.c_str(), 1);
FILE* out = fopen(mBackingFile.c_str(), "wb");
if (!out) return -1;
@@ -672,10 +672,10 @@ void DataManager::ReadSettingsFile(void)
sprintf(mkdir_path, "%s/TWRP", DataManager_GetSettingsStoragePath());
sprintf(settings_file, "%s/.twrps", mkdir_path);
- if (TWPartitionManager::Mount_By_Path(DataManager_GetSettingsStorageMount(), 0) < 0)
+ if (!PartitionManager.Mount_Settings_Storage(false))
{
usleep(500000);
- if (TWPartitionManager::Mount_By_Path(DataManager_GetSettingsStorageMount(), 0) < 0)
+ if (!PartitionManager.Mount_Settings_Storage(false))
LOGE("Unable to mount %s when trying to read settings file.\n", DataManager_GetSettingsStorageMount());
}
@@ -688,14 +688,14 @@ void DataManager::ReadSettingsFile(void)
GetValue(TW_HAS_EXTERNAL, has_ext);
if (has_dual != 0 && use_ext == 1) {
// Attempt to sdcard using external storage
- if (TWPartitionManager::Mount_Current_Storage()) {
+ if (PartitionManager.Mount_Current_Storage(false)) {
LOGE("Failed to mount external storage, using internal storage.\n");
// Remount failed, default back to internal storage
SetValue(TW_USE_EXTERNAL_STORAGE, 0);
- TWPartitionManager::Mount_Current_Storage();
+ PartitionManager.Mount_Current_Storage(true);
}
} else {
- TWPartitionManager::Mount_Current_Storage();
+ PartitionManager.Mount_Current_Storage(true);
}
if (has_data_media == 1) {
if (has_dual == 0) {
@@ -731,7 +731,7 @@ void DataManager::ReadSettingsFile(void)
string ext_path;
GetValue(TW_EXTERNAL_PATH, ext_path);
- TWPartitionManager::Mount_By_Path(ext_path, 0);
+ PartitionManager.Mount_By_Path(ext_path, 0);
}
}