mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-30 11:40:32 +00:00
Simply formats/xml/rxml.c
This commit is contained in:
parent
5960cd80d2
commit
a1ce8b58c4
@ -429,10 +429,7 @@ rxml_document_t *rxml_load_document(const char *path)
|
||||
if (!doc)
|
||||
goto error;
|
||||
|
||||
filestream_seek(file, 0, SEEK_END);
|
||||
len = filestream_tell(file);
|
||||
filestream_rewind(file);
|
||||
|
||||
len = filestream_get_size(file);
|
||||
memory_buffer = (char*)malloc(len + 1);
|
||||
if (!memory_buffer)
|
||||
goto error;
|
||||
|
@ -249,6 +249,7 @@ RFILE *filestream_open(const char *path, unsigned mode, unsigned hints)
|
||||
|
||||
if (stream->fd == -1)
|
||||
goto error;
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
if (stream->hints & RETRO_VFS_FILE_ACCESS_HINT_MEMORY_MAP)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user