CFLAGS += -I platform/libretro/libretro-common/include/string
CFLAGS += -I platform/libretro/libretro-common/include/vfs
-STATIC_LINKING:= 0
+USE_LIBRETRO_VFS := 1
+STATIC_LINKING := 0
TARGET_NAME := picodrive
LIBM := -lm
GIT_VERSION ?= $(shell git rev-parse --short HEAD || echo unknown)
ARCH = x86_64
SHARED :=
LIBM :=
- USE_LIBRETRO_VFS = 1
NO_ALIGN_FUNCTIONS = 1
CFLAGS += -DHAVE_VSNPRINTF
#include "pico_int.h"\r
#include <cpu/debug.h>\r
\r
-#ifdef USE_LIBRETRO_VFS\r
-#include "file_stream_transforms.h"\r
-#endif\r
-\r
#if defined(USE_LIBCHDR)\r
#include "libchdr/chd.h"\r
#include "libchdr/cdrom.h"\r
#include "cdd.h"
#include "cd_parse.h"
-#ifdef USE_LIBRETRO_VFS
-#include "file_stream_transforms.h"
-#endif
-
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
#include "cd_parse.h"
// #define elprintf(w,f,...) printf(f "\n",##__VA_ARGS__);
-#ifdef USE_LIBRETRO_VFS
-#include "file_stream_transforms.h"
-#endif
-
#if defined(USE_LIBCHDR)
#include "libchdr/chd.h"
#include "libchdr/cdrom.h"
#include "memory.h"
#include "patch.h"
-#ifdef USE_LIBRETRO_VFS
-#include "file_stream_transforms.h"
-#endif
-
struct patch
{
unsigned int addr;
#endif
#include "pico_types.h"
+#ifdef USE_LIBRETRO_VFS
+#include "file_stream_transforms.h"
+#endif
+
#if defined(__GNUC__) && defined(__i386__)
#define REGPARM(x) __attribute__((regparm(x)))
#else
#include "pico_int.h"\r
#include "memory.h"\r
\r
-#ifdef USE_LIBRETRO_VFS\r
-#include "file_stream_transforms.h"\r
-#endif\r
-\r
/* context */\r
// Cyclone 68000\r
#ifdef EMU_C68K\r
#include "sound/emu2413/emu2413.h"\r
#include "state.h"\r
\r
-#ifdef USE_LIBRETRO_VFS\r
-#include "file_stream_transforms.h"\r
-#endif\r
-\r
// sn76496 & ym2413\r
extern int *sn76496_regs;\r
extern OPLL old_opll;\r
#include "../libpicofe/lprintf.h"
#include "config_file.h"
-#ifdef USE_LIBRETRO_VFS
-#include "file_stream_transforms.h"
-#endif
-
static char *mystrip(char *str);
#ifndef _MSC_VER
#include <pico/pico_int.h>\r
#include <pico/patch.h>\r
\r
-#ifdef USE_LIBRETRO_VFS\r
-#include "file_stream_transforms.h"\r
-#endif\r
-\r
#if defined(__GNUC__) && __GNUC__ >= 7\r
#pragma GCC diagnostic ignored "-Wformat-truncation"\r
#endif\r
#include "version.h"\r
#include <cpu/debug.h>\r
\r
-#ifdef USE_LIBRETRO_VFS\r
-#include "file_stream_transforms.h"\r
-#endif\r
-\r
static int load_state_slot = -1;\r
char **g_argv;\r
\r
#include <libkern/OSCacheControl.h>
#endif
-#ifdef USE_LIBRETRO_VFS
-#include "file_stream_transforms.h"
-#endif
-
#if defined(RENDER_GSKIT_PS2)
#include <malloc.h>
#include "libretro-common/include/libretro_gskit_ps2.h"
\r
#include <stdio.h>\r
\r
+#ifdef USE_LIBRETRO_VFS\r
+#include "file_stream_transforms.h"\r
+#endif\r
+\r
#ifdef __cplusplus\r
extern "C" {\r
#endif\r
#include <stdio.h>
+#ifdef USE_LIBRETRO_VFS
+#include "file_stream_transforms.h"
+#endif
+
#include "zutil.h"
#ifdef NO_DEFLATE /* for compatibility with old definition */