parent
163ec0f979
commit
b14dfc2585
|
@ -26,7 +26,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <libretro.h>
|
#include <libretro.h>
|
||||||
#include <retro_environment.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CDROM
|
#ifdef HAVE_CDROM
|
||||||
#include <vfs/vfs_implementation_cdrom.h>
|
#include <vfs/vfs_implementation_cdrom.h>
|
||||||
|
@ -48,15 +47,6 @@ struct retro_vfs_file_handle
|
||||||
struct libretro_vfs_implementation_file
|
struct libretro_vfs_implementation_file
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef __WINRT__
|
|
||||||
IRandomAccessStream^ fp;
|
|
||||||
IBuffer^ bufferp;
|
|
||||||
char* buffer;
|
|
||||||
char* orig_path;
|
|
||||||
size_t buffer_size;
|
|
||||||
int buffer_left;
|
|
||||||
size_t buffer_fill;
|
|
||||||
#else
|
|
||||||
int fd;
|
int fd;
|
||||||
unsigned hints;
|
unsigned hints;
|
||||||
int64_t size;
|
int64_t size;
|
||||||
|
@ -73,7 +63,6 @@ struct libretro_vfs_implementation_file
|
||||||
#ifdef HAVE_CDROM
|
#ifdef HAVE_CDROM
|
||||||
vfs_cdrom_t cdrom;
|
vfs_cdrom_t cdrom;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Replace the following symbol with something appropriate
|
/* Replace the following symbol with something appropriate
|
||||||
|
|
|
@ -328,6 +328,21 @@ IBuffer^ CreateNativeBuffer(void* buf, uint32_t capacity, uint32_t length)
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef VFS_FRONTEND
|
||||||
|
struct retro_vfs_file_handle
|
||||||
|
#else
|
||||||
|
struct libretro_vfs_implementation_file
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
IRandomAccessStream^ fp;
|
||||||
|
IBuffer^ bufferp;
|
||||||
|
char* buffer;
|
||||||
|
char* orig_path;
|
||||||
|
size_t buffer_size;
|
||||||
|
int buffer_left;
|
||||||
|
size_t buffer_fill;
|
||||||
|
};
|
||||||
|
|
||||||
libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, unsigned mode, unsigned hints)
|
libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, unsigned mode, unsigned hints)
|
||||||
{
|
{
|
||||||
if (!path || !*path)
|
if (!path || !*path)
|
||||||
|
|
Loading…
Reference in New Issue