cellPhotoImport: allow dev_hdd1

This commit is contained in:
Megamouse 2022-08-02 01:01:53 +02:00
parent 934e7b614c
commit 4dec8d7925

View File

@ -121,9 +121,9 @@ error_code select_photo(std::string dst_dir)
return CELL_PHOTO_IMPORT_ERROR_PARAM; return CELL_PHOTO_IMPORT_ERROR_PARAM;
} }
if (!dst_dir.starts_with("/dev_hdd0")) if (!dst_dir.starts_with("/dev_hdd0"sv) && !dst_dir.starts_with("/dev_hdd1"sv))
{ {
cellPhotoImportUtil.error("Destination '%s' is not inside dev_hdd0", dst_dir); cellPhotoImportUtil.error("Destination '%s' is not inside dev_hdd0 or dev_hdd1", dst_dir);
return CELL_PHOTO_IMPORT_ERROR_ACCESS_ERROR; // TODO: is this correct? return CELL_PHOTO_IMPORT_ERROR_ACCESS_ERROR; // TODO: is this correct?
} }