Fix device-prefixed paths on retro core for PS Vita

This commit is contained in:
Craig Carnell committed 2026-11-04 16:51:59 +00:00
1 parent 64446b8ed7
commit d1379dde93
1 file changed
+14
+14
View File
@@ -119,6 +119,20 @@ static bool File_IsRootFileName(const char *pszFileName)
return true;
#endif
#ifdef LIBRETRO
/* Console(s) may include the name of the devices rather than everything being
* at '/': thus the frontend hands the core something like
* "ux0:/data/retroarch/system"
*/
{
const char *colon = strchr(pszFileName, ':');
const char *sep = strchr(pszFileName, PATHSEP);
if (colon && colon != pszFileName && (!sep || colon < sep))
return true;
}
#endif
return false;
}