mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-05 09:39:32 +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 offset, int whence);
|
||||
|
||||
void intfstream_rewind(intfstream_internal_t *intf);
|
||||
|
||||
#endif
|
||||
|
@ -204,3 +204,16 @@ int intfstream_getc(intfstream_internal_t *intf)
|
||||
|
||||
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…
Reference in New Issue
Block a user