summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-26 16:23:08 +0100
committerGitHub <noreply@github.com>2024-01-26 16:23:08 +0100
commitbd8635e26a653739da5052143f7ec847f5537520 (patch)
treef401af72c6b49003daf5dd971a7b9503a72e980f /src
parentMerge pull request #12769 from german77/no-log (diff)
parentvfs: Fix getting URI filename (diff)
downloadyuzu-bd8635e26a653739da5052143f7ec847f5537520.tar
yuzu-bd8635e26a653739da5052143f7ec847f5537520.tar.gz
yuzu-bd8635e26a653739da5052143f7ec847f5537520.tar.bz2
yuzu-bd8635e26a653739da5052143f7ec847f5537520.tar.lz
yuzu-bd8635e26a653739da5052143f7ec847f5537520.tar.xz
yuzu-bd8635e26a653739da5052143f7ec847f5537520.tar.zst
yuzu-bd8635e26a653739da5052143f7ec847f5537520.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/vfs/vfs_real.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/file_sys/vfs/vfs_real.cpp b/src/core/file_sys/vfs/vfs_real.cpp
index 627d5d251..3ad073e4a 100644
--- a/src/core/file_sys/vfs/vfs_real.cpp
+++ b/src/core/file_sys/vfs/vfs_real.cpp
@@ -20,6 +20,10 @@
#define stat _stat64
#endif
+#ifdef ANDROID
+#include "common/fs/fs_android.h"
+#endif
+
namespace FileSys {
namespace FS = Common::FS;
@@ -274,6 +278,11 @@ RealVfsFile::~RealVfsFile() {
}
std::string RealVfsFile::GetName() const {
+#ifdef ANDROID
+ if (path[0] != '/') {
+ return FS::Android::GetFilename(path);
+ }
+#endif
return path_components.empty() ? "" : std::string(path_components.back());
}