mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Better hack for a path problem. Still don't get it.
This commit is contained in:
parent
3bd5cfed73
commit
2937928237
2 changed files with 7 additions and 2 deletions
|
@ -138,7 +138,7 @@ u32 DirectoryFileSystem::OpenFile(std::string filename, FileAccess access)
|
|||
if (!success)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
ERROR_LOG(HLE, "DirectoryFileSystem::OpenFile: FAILED, %i", GetLastError());
|
||||
ERROR_LOG(HLE, "DirectoryFileSystem::OpenFile: FAILED, %i - access = %i", GetLastError(), (int)access);
|
||||
#endif
|
||||
//wwwwaaaaahh!!
|
||||
return 0;
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
bool applyPathStringToComponentsVector(std::vector<std::string> &vector, const std::string &pathString)
|
||||
{
|
||||
vector.clear();
|
||||
size_t len = pathString.length();
|
||||
size_t start = 0;
|
||||
|
||||
|
@ -117,6 +116,12 @@ bool RealPath(const std::string ¤tDirectory, const std::string &inPath, st
|
|||
std::vector<std::string> cmpnts; // path components
|
||||
size_t capacityGuess = inPath.length();
|
||||
|
||||
// Special hack for strange root paths.
|
||||
// Don't understand why this is needed. I don't think the current
|
||||
// directory should be the root.
|
||||
if (inAfter.substr(0, 11) == "./PSP_GAME/")
|
||||
inAfter = inAfter.substr(1);
|
||||
|
||||
if ((inAfter[0] != '/'))
|
||||
{
|
||||
if (curDirLen == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue