yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

vfs: Fix getting URI filename

This commit is contained in:
t895 2024-01-26 09:08:31 -05:00
parent 59aee2b461
commit f2fb761bac
1 changed files with 9 additions and 0 deletions

View File

@ -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());
}