mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-28 00:30:06 +00:00
vfs: Fix getting URI filename
This commit is contained in:
parent
59aee2b461
commit
f2fb761bac
@ -20,6 +20,10 @@
|
|||||||
#define stat _stat64
|
#define stat _stat64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
#include "common/fs/fs_android.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
|
||||||
namespace FS = Common::FS;
|
namespace FS = Common::FS;
|
||||||
@ -274,6 +278,11 @@ RealVfsFile::~RealVfsFile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string RealVfsFile::GetName() const {
|
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());
|
return path_components.empty() ? "" : std::string(path_components.back());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user