add function to partition.cpp to return max file size to mtp responder

Change-Id: If8114b5eac741db6c512fb35cb48e3825c2ff098
This commit is contained in:
bigbiff
2014-11-26 20:36:07 -05:00
committed by Dees Troy
parent 253368a072
commit 7cb4c3322b
8 changed files with 36 additions and 6 deletions
+1 -1
View File
@@ -1914,7 +1914,7 @@ bool TWPartitionManager::Enable_MTP(void) {
if ((*iter)->Is_Storage && (*iter)->Is_Present && (*iter)->Mount(false)) {
++storageid;
printf("twrp addStorage %s, mtpstorageid: %u\n", (*iter)->Storage_Path.c_str(), storageid);
mtp->addStorage((*iter)->Storage_Name, (*iter)->Storage_Path, storageid);
mtp->addStorage((*iter)->Storage_Name, (*iter)->Storage_Path, storageid, (*iter)->Get_Max_FileSize());
count++;
}
}