Use libretro VFS function in my_fsize

This commit is contained in:
sonninnos committed 2026-04-19 22:06:47 +03:00
1 parent 1ad81ada92
commit bd2ef50e22
1 file changed
+4
+4
View File
@@ -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) {