From 812660fd1d49bec7129d4c32a8493038a48385d7 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 20 Sep 2012 09:55:17 -0400 Subject: Add and improve OpenRecoveryScript support Improve zip finding in ORS engine Add support for restoring with just a backup name --- partitionmanager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'partitionmanager.cpp') diff --git a/partitionmanager.cpp b/partitionmanager.cpp index b2bbf8e8e..67ec84ec5 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1497,4 +1497,13 @@ int TWPartitionManager::usb_storage_disable(void) { Mount_By_Path(DataManager::GetSettingsStoragePath(), true); Mount_By_Path(DataManager::GetCurrentStoragePath(), true); return true; +} + +void TWPartitionManager::Mount_All_Storage(void) { + std::vector::iterator iter; + + for (iter = Partitions.begin(); iter != Partitions.end(); iter++) { + if ((*iter)->Is_Storage) + (*iter)->Mount(false); + } } \ No newline at end of file -- cgit v1.2.3