mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Add intfstream_rewind
This commit is contained in:
parent
ea037799a4
commit
99a9769014
@ -70,4 +70,6 @@ int intfstream_getc(intfstream_internal_t *intf);
|
|||||||
int intfstream_seek(intfstream_internal_t *intf,
|
int intfstream_seek(intfstream_internal_t *intf,
|
||||||
int offset, int whence);
|
int offset, int whence);
|
||||||
|
|
||||||
|
void intfstream_rewind(intfstream_internal_t *intf);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -204,3 +204,16 @@ int intfstream_getc(intfstream_internal_t *intf)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void intfstream_rewind(intfstream_internal_t *intf)
|
||||||
|
{
|
||||||
|
switch (intf->type)
|
||||||
|
{
|
||||||
|
case INTFSTREAM_FILE:
|
||||||
|
filestream_rewind(intf->file.fp);
|
||||||
|
break;
|
||||||
|
case INTFSTREAM_MEMORY:
|
||||||
|
memstream_rewind(intf->memory.fp);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user