mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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)
|
||||
SceIoStat buf;
|
||||
char *tmp = strdup(path);
|
||||
size_t len = strlen(tmp);
|
||||
if (tmp[len-1] == '/')
|
||||
tmp[len-1]='\0';
|
||||
|
||||
if (sceIoGetstat(path, &buf) < 0)
|
||||
{
|
||||
free(tmp);
|
||||
return false;
|
||||
}
|
||||
free(tmp);
|
||||
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
CellFsStat buf;
|
||||
if (cellFsStat(path, &buf) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user