diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-27 05:33:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 05:33:51 +0200 |
commit | 02882d9251abe4675e3cc2a6eb62289c27f1f9f1 (patch) | |
tree | cdec0c48f4a2f93f23ff1b9d961a5a18a3a3f6ae | |
parent | Merge pull request #10908 from kiri11/clarify-ring-ui (diff) | |
parent | android: Fix size check for content uris (diff) | |
download | yuzu-02882d9251abe4675e3cc2a6eb62289c27f1f9f1.tar yuzu-02882d9251abe4675e3cc2a6eb62289c27f1f9f1.tar.gz yuzu-02882d9251abe4675e3cc2a6eb62289c27f1f9f1.tar.bz2 yuzu-02882d9251abe4675e3cc2a6eb62289c27f1f9f1.tar.lz yuzu-02882d9251abe4675e3cc2a6eb62289c27f1f9f1.tar.xz yuzu-02882d9251abe4675e3cc2a6eb62289c27f1f9f1.tar.zst yuzu-02882d9251abe4675e3cc2a6eb62289c27f1f9f1.zip |
-rw-r--r-- | src/common/fs/fs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/fs/fs.cpp b/src/common/fs/fs.cpp index 1baf6d746..36e67c145 100644 --- a/src/common/fs/fs.cpp +++ b/src/common/fs/fs.cpp @@ -605,6 +605,12 @@ fs::file_type GetEntryType(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; const auto file_size = fs::file_size(path, ec); |