pf2: drv::IsInserted

This commit is contained in:
Michael Scire
2021-02-02 22:53:23 -08:00
parent 8719e6da02
commit a2f611edb7
6 changed files with 84 additions and 7 deletions

View File

@@ -42,4 +42,12 @@ namespace ams::prfile2::drv {
return pf::Error_Ok;
}
bool IsInserted(Volume *volume) {
/* Check inserted. */
/* NOTE: Error is not checked here. */
bool inserted = false;
pdm::part::CheckMediaInsert(volume->partition_handle, std::addressof(inserted));
return inserted;
}
}