mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a relative path issue - apparently paths starting with '/' are still relative.
This commit is contained in:
parent
0448c62146
commit
90e87ead84
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -2038,7 +2038,7 @@ void sceKernelCheckCallback()
|
|||
bool callbacksProcessed = __KernelForceCallbacks();
|
||||
|
||||
if (callbacksProcessed) {
|
||||
ERROR_LOG(HLE,"sceKernelCheckCallback() - processed a callback.");
|
||||
DEBUG_LOG(HLE,"sceKernelCheckCallback() - processed a callback.");
|
||||
} else {
|
||||
RETURN(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue