mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #10925 from t895/fs-agony
android: Fix size check for content uris
This commit is contained in:
commit
02882d9251
|
@ -605,6 +605,12 @@ fs::file_type GetEntryType(const fs::path& path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 GetSize(const fs::path& path) {
|
u64 GetSize(const fs::path& path) {
|
||||||
|
#ifdef ANDROID
|
||||||
|
if (Android::IsContentUri(path)) {
|
||||||
|
return Android::GetSize(path);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
|
|
||||||
const auto file_size = fs::file_size(path, ec);
|
const auto file_size = fs::file_size(path, ec);
|
||||||
|
|
Loading…
Reference in a new issue