mirror of
https://github.com/libretro/hatari.git
synced 2026-11-07 10:36:00 -10:00
Fix device-prefixed paths on retro core for PS Vita
This commit is contained in:
1 parent
64446b8ed7
commit
d1379dde93
1 file changed
+14
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user