mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-28 07:50:49 +00:00
Fix dir listings for relative paths
This commit is contained in:
parent
baa11aede8
commit
f463a5a679
@ -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))
|
||||
{
|
||||
|
@ -907,6 +907,7 @@ void sceIoDread()
|
||||
{
|
||||
if (dir->index == (int)dir->listing.size())
|
||||
{
|
||||
DEBUG_LOG(HLE,"sceIoDread( %d %08x ) - end of the line", PARAM(0), PARAM(1));
|
||||
RETURN(0);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user