summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp9
1 files changed, 9 insertions, 0 deletions
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<TWPartition*>::iterator iter;
+
+ for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
+ if ((*iter)->Is_Storage)
+ (*iter)->Mount(false);
+ }
} \ No newline at end of file