gui: allow MTP even if media storage isn't present

Change-Id: I6766f804fa7f116ddc436d566d9647206b0d2e69
This commit is contained in:
Captain Throwback
2021-10-16 16:16:02 -04:00
parent 32a17d528b
commit 4b9a9298ae
2 changed files with 0 additions and 7 deletions
-6
View File
@@ -2581,12 +2581,6 @@ TWPartition *TWPartitionManager::Get_Default_Storage_Partition()
bool TWPartitionManager::Enable_MTP(void) {
#ifdef TW_HAS_MTP
string mtp_base_path = "/data/media";
if (!TWFunc::Path_Exists(mtp_base_path)) {
gui_msg(Msg(msg::kWarning, "mtp_base_path_missing=Media storage not found. Unable to enable MTP."));
return false;
}
if (mtppid) {
gui_err("mtp_already_enabled=MTP already enabled");
return true;