summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-01-26 15:08:31 +0100
committert895 <clombardo169@gmail.com>2024-01-26 15:57:22 +0100
commitf2fb761bacc88bf31fc2699b474d45f015e7283b (patch)
tree156fbe9da37d7dc32bb85f176b89d25980423229 /src/core
parentMerge pull request #12809 from t895/error-message (diff)
downloadyuzu-f2fb761bacc88bf31fc2699b474d45f015e7283b.tar
yuzu-f2fb761bacc88bf31fc2699b474d45f015e7283b.tar.gz
yuzu-f2fb761bacc88bf31fc2699b474d45f015e7283b.tar.bz2
yuzu-f2fb761bacc88bf31fc2699b474d45f015e7283b.tar.lz
yuzu-f2fb761bacc88bf31fc2699b474d45f015e7283b.tar.xz
yuzu-f2fb761bacc88bf31fc2699b474d45f015e7283b.tar.zst
yuzu-f2fb761bacc88bf31fc2699b474d45f015e7283b.zip
Diffstat (limited to 'src/core')
-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());
}