diff options
| -rw-r--r-- | src/core/file_sys/vfs/vfs_real.cpp | 9 |
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 @@ | |||
| 20 | #define stat _stat64 | 20 | #define stat _stat64 |
| 21 | #endif | 21 | #endif |
| 22 | 22 | ||
| 23 | #ifdef ANDROID | ||
| 24 | #include "common/fs/fs_android.h" | ||
| 25 | #endif | ||
| 26 | |||
| 23 | namespace FileSys { | 27 | namespace FileSys { |
| 24 | 28 | ||
| 25 | namespace FS = Common::FS; | 29 | namespace FS = Common::FS; |
| @@ -274,6 +278,11 @@ RealVfsFile::~RealVfsFile() { | |||
| 274 | } | 278 | } |
| 275 | 279 | ||
| 276 | std::string RealVfsFile::GetName() const { | 280 | std::string RealVfsFile::GetName() const { |
| 281 | #ifdef ANDROID | ||
| 282 | if (path[0] != '/') { | ||
| 283 | return FS::Android::GetFilename(path); | ||
| 284 | } | ||
| 285 | #endif | ||
| 277 | return path_components.empty() ? "" : std::string(path_components.back()); | 286 | return path_components.empty() ? "" : std::string(path_components.back()); |
| 278 | } | 287 | } |
| 279 | 288 | ||