mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
[PSP] fix path_stat
This commit is contained in:
parent
757f61172f
commit
dc9044c6b7
@ -83,8 +83,18 @@ static bool path_stat(const char *path, enum stat_mode mode)
|
|||||||
{
|
{
|
||||||
#if defined(VITA) || defined(PSP)
|
#if defined(VITA) || defined(PSP)
|
||||||
SceIoStat buf;
|
SceIoStat buf;
|
||||||
|
char *tmp = strdup(path);
|
||||||
|
size_t len = strlen(tmp);
|
||||||
|
if (tmp[len-1] == '/')
|
||||||
|
tmp[len-1]='\0';
|
||||||
|
|
||||||
if (sceIoGetstat(path, &buf) < 0)
|
if (sceIoGetstat(path, &buf) < 0)
|
||||||
|
{
|
||||||
|
free(tmp);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
free(tmp);
|
||||||
|
|
||||||
#elif defined(__CELLOS_LV2__)
|
#elif defined(__CELLOS_LV2__)
|
||||||
CellFsStat buf;
|
CellFsStat buf;
|
||||||
if (cellFsStat(path, &buf) < 0)
|
if (cellFsStat(path, &buf) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user