mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Fix a relative path issue - apparently paths starting with '/' are still relative.
This commit is contained in:
@@ -122,7 +122,13 @@ bool RealPath(const std::string ¤tDirectory, const std::string &inPath, st
|
||||
if (inAfter.substr(0, 11) == "./PSP_GAME/")
|
||||
inAfter = inAfter.substr(1);
|
||||
|
||||
if ((inAfter[0] != '/'))
|
||||
// Apparently it's okay for relative paths to start with '/'.
|
||||
// For example, kahoots does sceIoChdir(disc0:/PSP_GAME/USRDIR/)
|
||||
// then opens paths like "/images/gui". Support this.
|
||||
if (inColon == std::string::npos && inAfter[0] == '/')
|
||||
inAfter = inAfter.substr(1);
|
||||
|
||||
if (inAfter[0] != '/')
|
||||
{
|
||||
if (curDirLen == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user