mirror of
https://github.com/libretro/libretro-uae.git
synced 2026-11-07 11:16:05 -10:00
Use libretro VFS function in my_fsize
This commit is contained in:
1 parent
1ad81ada92
commit
bd2ef50e22
1 file changed
+4
@@ -341,6 +341,9 @@ int my_truncate(const TCHAR *name, uae_u64 len) {
|
||||
}
|
||||
|
||||
uae_s64 my_fsize(struct my_openfile_s* mos) {
|
||||
#ifdef USE_LIBRETRO_VFS
|
||||
return filestream_get_size(mos->fp);
|
||||
#else
|
||||
#ifdef FD_OPEN
|
||||
struct stat sonuc;
|
||||
if (fstat(mos->fd, &sonuc) == -1) {
|
||||
@@ -366,6 +369,7 @@ uae_s64 my_fsize(struct my_openfile_s* mos) {
|
||||
fseek(mos->fp, current, SEEK_SET);
|
||||
return size;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
unsigned int my_read(struct my_openfile_s *mos, void *b, unsigned int size) {
|
||||
|
||||
Reference in new issue
Block a user