Fix accidental typo in MetaFileSystem.cpp.

This commit is contained in:
The Dax 2013-05-30 16:23:25 -04:00
parent 370b50a328
commit 77e4a8008b

View file

@ -188,16 +188,19 @@ bool MetaFileSystem::MapFilePath(const std::string &_inpath, std::string &outpat
int currentThread = __KernelGetCurThread();
currentDir_t::iterator it = currentDir.find(currentThread);
//Attempt to emulate SCE_KERNEL_ERROR_NOCWD / 8002032C: may break things requiring fixes elsewhere
if (inpath.find(':') == std::string::npos /* means path is relative */)
if (it == currentDir.end())
{
errorCode = SCE_KERNEL_ERROR_NOCWD;
WARN_LOG_REPORT(HLE, "Path is relative, but current directory not set for thread %i. returning 8002032C(SCE_KERNEL_ERROR_NOCWD) instead.", currentThread, startingDirectory.c_str());
return false;
}
else
{
currentDirectory = &(it->second);
//Attempt to emulate SCE_KERNEL_ERROR_NOCWD / 8002032C: may break things requiring fixes elsewhere
if (inpath.find(':') == std::string::npos /* means path is relative */)
{
errorCode = SCE_KERNEL_ERROR_NOCWD;
WARN_LOG_REPORT(HLE, "Path is relative, but current directory not set for thread %i. returning 8002032C(SCE_KERNEL_ERROR_NOCWD) instead.", currentThread, startingDirectory.c_str());
return false;
}
else
{
currentDirectory = &(it->second);
}
}
if ( RealPath(*currentDirectory, inpath, realpath) )