Fix bug that was causing weirdness in Wii builds. (#15752)
Things like the info files not being read. User defined directories not sticking ( likely not detected ) and all kinds of other goodness.
This commit is contained in:
parent
f427aaee8f
commit
fdd5e7cea0
|
@ -923,11 +923,11 @@ int retro_vfs_stat_impl(const char *path, int32_t *size)
|
||||||
if (path_buf[len - 1] == '/')
|
if (path_buf[len - 1] == '/')
|
||||||
path_buf[len - 1] = '\0';
|
path_buf[len - 1] = '\0';
|
||||||
|
|
||||||
free(path_buf);
|
|
||||||
|
|
||||||
if (stat(path_buf, &stat_buf) < 0)
|
if (stat(path_buf, &stat_buf) < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
free(path_buf);
|
||||||
|
|
||||||
if (size)
|
if (size)
|
||||||
*size = (int32_t)stat_buf.st_size;
|
*size = (int32_t)stat_buf.st_size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue