Complete memstream-based conversion of fceu/file.c

This commit is contained in:
twinaphex
2014-12-09 01:11:30 +01:00
parent 82741c30e5
commit 14c4a522c0

View File

@@ -162,17 +162,12 @@ int FCEU_fgetc(FCEUFILE *fp)
return EOF;
}
uint64 FCEU_ftell(FCEUFILE *fp)
{
return fp->fp->location;
}
uint64 FCEU_fgetsize(FCEUFILE *fp)
{
/* TODO */
#if 0
long t, r;
t = ftell((FILE*)fp->fp);
fseek((FILE*)fp->fp, 0, SEEK_END);
r = ftell((FILE*)fp->fp);
fseek((FILE*)fp->fp, t, SEEK_SET);
return r;
#else
return 0;
#endif
return fp->fp->size;
}