.PHONY: all clean target_ plugins_ clean_plugins FORCE
+ifneq "$(PLATFORM)" "pandora"
+ifdef CPATH
+$(warning warning: CPATH is defined)
+endif
+endif
+
# ----------- release -----------
VER ?= $(shell git describe HEAD)
"int. 4:3 - uses integer if possible, else fractional";
static const char h_cscaler[] = "Displays the scaler layer, you can resize it\n"
"using d-pad or move it using R+d-pad";
-static const char h_overlay[] = "Overlay provides hardware accelerated scaling";
static const char h_soft_filter[] = "Works only if game uses low resolution modes";
-static const char h_scanline_l[] = "Scanline brightness, 0-100%";
static const char h_gamma[] = "Gamma/brightness adjustment (default 100)";
+#ifdef __ARM_NEON__
+static const char h_scanline_l[] = "Scanline brightness, 0-100%";
+#endif
static int menu_loop_cscaler(int id, int keys)
{
static const char h_cfg_xa[] = "Disables XA sound, which can sometimes improve performance";
static const char h_cfg_cdda[] = "Disable CD Audio for a performance boost\n"
"(proper .cue/.bin dump is needed otherwise)";
-static const char h_cfg_sio[] = "You should not need this, breaks games";
+//static const char h_cfg_sio[] = "You should not need this, breaks games";
static const char h_cfg_spuirq[] = "Compatibility tweak; should be left off";
-static const char h_cfg_rcnt1[] = "Parasite Eve 2, Vandal Hearts 1/2 Fix\n"
- "(timing hack, breaks other games)";
+//static const char h_cfg_rcnt1[] = "Parasite Eve 2, Vandal Hearts 1/2 Fix\n"
+// "(timing hack, breaks other games)";
static const char h_cfg_rcnt2[] = "InuYasha Sengoku Battle Fix\n"
"(timing hack, breaks other games)";
static const char h_cfg_nodrc[] = "Disable dynamic recompiler and use interpreter\n"
char ffile[64], *pfile;
int nfile;
-static void buopen(int mcd, u8 *ptr, u8 *cfg)
+static void buopen(int mcd, char *ptr, char *cfg)
{
int i;
- u8 *fptr = ptr;
+ char *fptr = ptr;
strcpy(FDesc[1 + mcd].name, Ra0+5);
FDesc[1 + mcd].offset = 0;
fptr[6] = 0x00;
fptr[7] = 0x00;
strcpy(fptr+0xa, FDesc[1 + mcd].name);
- pptr = fptr2 = fptr;
+ pptr = fptr2 = (u8 *)fptr;
for(j=2; j<=nblk; j++) {
int k;
for(i++; i<16; i++) {
psxRegs.pc = psxRegs.GPR.n.ra;
}
-const void (*psxHLEt[8])() = {
+void (* const psxHLEt[])() = {
hleDummy, hleA0, hleB0, hleC0,
hleBootstrap, hleExecRet,
hleDummy, hleDummy
#include "r3000a.h"
#include "plugins.h"
-extern const void (*psxHLEt[8])();
+extern void (* const psxHLEt[8])();
#ifdef __cplusplus
}
unsigned long lSetMask = 0;
long lLowerpart;
+#if defined(__GNUC__) && __GNUC__ >= 6
+#pragma GCC diagnostic ignored "-Wmisleading-indentation"
+#endif
+
#include "soft.c"
#include "prim.c"
EGLint iErr = eglGetError();\r
if (iErr != EGL_SUCCESS)\r
{\r
- printf("%s failed (0x%x).\n", pszLocation, iErr);\r
+ printf("%s failed (0x%x).\n", pszLocation, (int)iErr);\r
return FALSE;\r
}\r
\r
// real psx polygon coord mapping right... the following\r
// works not to bad with many games, though\r
\r
-__inline BOOL CheckCoord4()\r
+static __inline BOOL CheckCoord4()\r
{\r
if(lx0<0)\r
{\r
return FALSE;\r
}\r
\r
-__inline BOOL CheckCoord3()\r
+static __inline BOOL CheckCoord3()\r
{\r
if(lx0<0)\r
{\r
}\r
\r
\r
-__inline BOOL CheckCoord2()\r
+static __inline BOOL CheckCoord2()\r
{\r
if(lx0<0)\r
{\r