Fix dir listings for relative paths
This commit is contained in:
parent
baa11aede8
commit
f463a5a679
2 changed files with 6 additions and 0 deletions
|
@ -114,6 +114,11 @@ PSPFileInfo MetaFileSystem::GetFileInfo(std::string filename)
|
|||
std::vector<PSPFileInfo> MetaFileSystem::GetDirListing(std::string path)
|
||||
{
|
||||
std::string of;
|
||||
if (path.find(':') == std::string::npos)
|
||||
{
|
||||
path = currentDirectory + "/" + path;
|
||||
DEBUG_LOG(HLE,"GetFileInfo: Expanded path to %s", path.c_str());
|
||||
}
|
||||
IFileSystem *system;
|
||||
if (MapFilePath(path, of, &system))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue